Commit graph

147 commits

Author SHA1 Message Date
chrmarti
feebefb676 Copy code-icon.svg to near where it is used (fixes #19541) 2017-02-07 07:59:55 -08:00
Christof Marti
01d9849401 Update OSS icon 2017-02-02 13:48:51 -08:00
Christof Marti
852c1e34d5 Need a default icon (#18860) 2017-01-26 21:23:38 -08:00
Daniel Imms
289dbf77e3 Fix linux CLI sudo argument parsing
Fixes #17713
2017-01-25 12:03:59 -08:00
Daniel Imms
9c298b0978 Fix cli.js always opening from WSL shell
Also support relative paths

Fixes #13138
2017-01-13 18:01:35 -08:00
Daniel Imms
94f30c3e8b Add --new-window-if-not-first CLI arg
This allows shift+click/middle+click/num+super Windows and Unity shortcuts to
work as expected while not changing regular launch behavior.

Part of #48
2017-01-05 10:10:38 -08:00
Tilman Vatteroth
20bbbfa6fe linux argument startup fix 2016-12-27 14:11:21 +01:00
Daniel Imms
95fa5500ee Use common summary/desc in .appdata.xml 2016-12-18 17:55:05 -08:00
Adrian Perez de Castro
1e300d1f7e
Add an AppData XML data file to Linux builds
The AppData files provide descriptive data about an application, and is
typically used in application managers to display additional information to
the user. Having an AppData file is especially important for some graphical
application installers: without one, an application manager may not event
show an entry for the application. This happens for example in GNOME Software.

For the sake of completeness, this commit not only adds the AppData file to
the Flatpak build, but also to the Linux .deb and .rpm packages.
2016-12-18 20:57:25 +02:00
Daniel Imms
b69e40dd8a Use license in product.json for rpm
Fixes #17133
2016-12-13 21:10:29 -08:00
Daniel Imms
9f4d4978e1 Improve rpm dependencies
Fixes #17142
2016-12-13 19:58:38 -08:00
Daniel Imms
4953d56537 Depend on 64-bit gconf-2 for 64-bit package 2016-12-13 18:33:16 -08:00
Daniel Imms
d9f50bdfce Merge pull request #16016 from xadhoom/GConf2
Add GConf2 dependency in rpm spec template
2016-12-13 18:24:33 -08:00
Daniel Imms
42a2fb715d Indicate multiple licenses in rpm package
Fixes #15993
2016-11-26 06:29:38 -08:00
Matteo
42b9343a1f Add GConf2 dependency in rpm spec template 2016-11-24 12:02:57 +01:00
Daniel Imms
23217e2f4b Indicate that code opens directories in code.desktop
Fixes #15741
2016-11-18 17:09:42 -08:00
Daniel Imms
6c64805bd3 Merge pull request #15448 from aniljava/master
Fix to retain and pass args in linux cli
2016-11-14 10:18:15 -08:00
Benjamin Pasero
97bef4bdc6 Update to electron 1.4.x (#15298)
* electron 1.4.6

* fix broken DND image feedback

* OSS input

* remove cat.exe as it is no longer needed

* update electron.d.ts

* set new ELECTRON_NO_ASAR environment for forked processes

* Automatically enable high contrast theme when enabled in Windows (fixes #15360)
2016-11-14 14:27:53 +01:00
aniljava
c2935f2073 Fix to retain and pass args
The --user-data-dir check routine shifts and removes the args. This edit is to retain the original arguments and pass to executable when finally called.
See issue #15435
2016-11-14 02:52:16 -07:00
Munir Mastalic
a2bffda57b add conditional to rpm spec to test for arch, fixes 13616
libXss.so.1 was recently introduced as a dependency for correct rpm installation of vscode.

libXss.so.1 is a requirement for runtime.

this conditional check will help  tooling such as yum/dnf/rpm etc ensure the proper dependency is in place at installation time and help avoid bringing in i386 dependency libraries for x86_64 architectures.

i386
libXss.so.1

x86_64
libXss.so.1()(64bit)
2016-10-30 15:17:50 -06:00
Daniel Imms
7492ba5fb9 Use %{_bindir} to install bin command in rpm
Fixes #11431
2016-10-22 19:30:40 -07:00
Michael Chou
a17396960a Fix #14044: follow symlinks recursively in Linux launch script 2016-10-20 15:45:29 +08:00
Benjamin Pasero
0a42a84fe8 get rid of extra backslashes in code.cmd 2016-10-13 15:13:50 +02:00
Benjamin Pasero
85a0071bf0 fixes #13626 2016-10-13 12:27:07 +02:00
Daniel Imms
aa6346e779 Have rpm depend on libXss.so.1, not named package
Fixes #13544
2016-10-12 09:44:26 -07:00
Daniel Imms
738fa36055 Add libXScrnSaver as dep to .rpm spec
Fixes #13439
2016-10-10 11:10:09 -07:00
Benjamin Pasero
e81e308a40 Insiders: cat.exe won't start, MSVCP140.dll is missing (fixes #12481) 2016-09-23 08:45:38 +02:00
Benjamin Pasero
5cc7faabc2 add icon to cat.exe 2016-09-14 11:33:10 +02:00
Benjamin Pasero
6fa85223ef Electron Update 1.x (#11157)
* use electron 1.3.4

* ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE

* OSS input

* update electron.d.ts

* workaround for #8708

* bump oniguruma and chokidar with custom fsevents

* build with appveyor config from master

* oops, still use ELECTRON_RUN_AS_NODE

* use electron 1.3.5

* optional fsevents

* add cat.exe to workaround output issues

* use cat for tests

* remove some now obsolete ELECTRON_NO_ATTACH_CONSOLE

* also pipe output to cat for code.sh on windows

* unset ELECTRON_RUN_AS_NODE for appveyor

* fix tfs builds?

* fix build

* fix build?

* use cat only when running tests locally
2016-09-14 07:29:20 +02:00
Aldo Fregoso
79c02d4dba Fixed code.sh to start VS Code under Cygwin. 2016-08-13 20:31:30 -05:00
Joao Moreno
6d6d4d1aca add inno bitmaps 2016-07-20 16:58:14 +02:00
Daniel Imms
3eed6fabe0 Add proper package replace metadata to deb control
Fixes #8943
Fixes #8876
Fixes #7496
2016-07-08 11:24:47 -07:00
Daniel Imms
934fa0bc0b Add breaks visual-studio-code to deb control file
Fixes #8943
2016-07-08 09:34:32 -07:00
Benjamin Pasero
0525466708 back to ATOM_SHELL_INTERNAL_RUN_AS_NODE 2016-07-08 16:12:10 +02:00
Benjamin Pasero
5d1affed4b ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE 2016-07-02 08:39:01 +02:00
Urban Dove
e7f6f45f14 Add 'vscode' as a keyword in the .desktop file so you can search for vscode not only for code 2016-06-19 01:19:40 -04:00
Daniel Imms
93e65224d7 Add linux setup link to packages
Fixes #6559
2016-06-16 11:41:18 -07:00
Andrew Stitcher
57a6d9568d Fix removal of /usr/bin link when upgrading package 2016-06-07 15:54:15 -04:00
Daniel Imms
77c45a9aed Add libnotify4 and libnss3 as deps to deb
Fixes #6636
2016-06-02 18:47:39 -07:00
Daniel Imms
88dda0daac Remove git dependency from Linux packages
It's only a soft dependency so don't block an install on it.

Fixes #6692
2016-06-02 18:35:16 -07:00
Daniel Imms
9fc936c1eb Replace visual-studio-code with code in deb package
Fixes #7085
2016-06-02 12:43:08 -07:00
Daniel Imms
05a6bbb31f Add el7 to rpm name to indicate RHEL7+ support
Fixes #6546
2016-05-31 19:25:46 -07:00
Daniel Imms
cf36b323e2 Remove 'visual-studio-' from deb package to match command
Fixes #7085
2016-05-31 18:24:20 -07:00
Daniel Imms
069e325d0b Use electron binary over CLI in desktop entry
Fixes #6110
2016-05-27 16:12:56 -07:00
Daniel Imms
4c71c3ed16 Use correct StartupWMClass in desktop entry
This prevents two entries appearing in the launcher.

Fixes #6593
2016-05-27 16:11:01 -07:00
Daniel Imms
096221c344 Change deb postrm shebang to /bin/bash
Fixes #6758
2016-05-24 13:39:09 -07:00
Daniel Imms
b6095e9d85 Fix opening files with spaces via CLI on Linux
Fixes #6525
2016-05-20 15:42:44 -07:00
Daniel Imms
399a12f3e3 Add glibc v2.15 requirement to rpm
Fixes #6545
2016-05-19 12:35:51 -07:00
Daniel Imms
833be745fa Explicitly install desktop entry in deb postinst
Fixes #6432
2016-05-17 17:53:52 -07:00
Daniel Imms
d96e0df5ba Remove bin command in post install step for deb 2016-05-13 15:28:28 -07:00
Daniel Imms
0b37d2acb9 Have rpm remove bin symlink in post uninstall step
Related #6338
2016-05-13 15:14:28 -07:00
Daniel Imms
179fd83998 Use sudo to add bin symlink in rpm
Fixes #6338
2016-05-13 15:12:17 -07:00
Daniel Imms
9b8383faac Localize "New Window" in desktop entry
Fixes #5234
2016-04-13 13:36:56 -07:00
Daniel Imms
6456f85788 Disallow running as root without --user-data-dir
This commit adds the --user-data-dir argument which allows a custom data dir
for Chromium's user data. This is useful when running as root on Linux since
the root user does not have read or write permissions for the ~/.config/Code
dir.

Part of #3068
2016-04-06 16:31:36 -07:00
Daniel Imms
cd12a7e389 Include the Linux bin command in the main dir
This also changes the behavior of the bin command to find cli.js relatively,
meaning the CLI now supports non-standard install locations.
2016-04-05 14:51:03 -07:00
Daniel Imms
6e113d01f0 Move bin command to /usr/share/<app>/bin
/usr/bin/<app> now symlinks to the launcher. This makes the CLI
accessible in the zip archive version.

Fixes #4426
2016-04-04 16:25:12 -07:00
Xaver Hellauer
5852199686 Add "new window" action to code.desktop
In Gnome and Unity desktop (and maybe some others) this can be used to open a new Code window through right click on the launcher icon and then on "New Window".
2016-04-04 17:59:09 +02:00
Daniel Imms
ba6f665c6d Merge .deb postinst and postinst.oss 2016-04-01 12:36:26 -07:00
Daniel Imms
e4d6038750 Use update url variable for yum repo 2016-04-01 12:32:27 -07:00
Daniel Imms
d23ce88450 Add yum repository registration
This is currently disabled until the repo is signed

Part of #229
2016-04-01 12:29:59 -07:00
Daniel Imms
51209bba91 Add Icon to rpm file
Related to #4155
2016-03-24 14:01:51 -07:00
Daniel Imms
e0c7d51ffa Remove legacy bin command as rpm post install step
Fixes #4442
2016-03-23 15:31:06 -07:00
Daniel Imms
6b0d3d2cae Correct source repository format
Some changes were made to the endpoints.
2016-03-23 10:56:49 -07:00
Daniel Imms
ef2a1fcaa5 Fix deb postinst script 2016-03-20 11:19:18 -07:00
Daniel Imms
d451e0222a Don't need to use -r arg 2016-03-18 15:27:25 -07:00
Daniel Imms
b6486f7ddf Remove the legacy Linux bin command when installing stable 2016-03-18 15:17:50 -07:00
Daniel Imms
a0a22c8a51 Disable apt repository source
Need repository to be signed before enabling
2016-03-18 11:51:13 -07:00
Daniel Imms
01be0ac7fe Add Group, Vendor and Packager metadata to rpm spec 2016-03-09 19:53:06 -08:00
Joao Moreno
70ab81b95e fixes #3790 2016-03-08 11:13:03 +01:00
Daniel Imms
3ddbbe9a95 Implement .rpm package gulp task
.rpm packages can now be build with:

    gulp vscode-linux-<arch>-build-rpm

The resulting package will be output to ~/rpmbuild/RPMS/<arch>/ and can be
installed on a Red Hat-based distro with:

    yum localinstall <path>

Note that Debian systems can build the package after installing the 'rpm'
package:

    apt-get install rpm

This was tested building 64-bit on Ubuntu 15.10 and installing on CentOS 7.

Fixes #3595
2016-03-07 12:36:26 -08:00
Daniel Imms
572be7e529 Register code to the Debian alternatives system
Fixes #3541
2016-02-29 15:44:47 -08:00
Daniel Imms
346b45740b Merge pull request #3513 from Tyriar/2973_deb_register_apt_repository
Register the apt repository as a source for official .deb builds
2016-02-29 14:45:42 -08:00
Daniel Imms
2428e2516e Revise deb package wording
Fixes #3457
2016-02-29 09:54:18 -08:00
Daniel Imms
d624636afe Register the apt repository as a source for official .deb builds
Part of #2973
2016-02-26 09:01:39 -08:00
Joao Moreno
00035055a4 use same cli script in Windows
fixes #3055
2016-02-25 17:35:33 +01:00
Joao Moreno
1a51948f9c add code launcher for windows bash
fixes #1704
2016-02-25 16:53:32 +01:00
Joao Moreno
d46c0646f2 move back to ATOM_SHELL_INTERNAL_RUN_AS_NODE 2016-02-15 11:07:22 +01:00
Daniel Imms
ec54b8289e Add git as a package dependency 2016-02-12 13:36:00 -08:00
Daniel Imms
994b0ad09d Add maintainer email back in
It's a package quality requirement to avoid security warnings on installation
2016-02-12 13:34:44 -08:00
Joao Moreno
be4a1ef00c add darwin specific launcher 2016-02-12 16:58:39 +01:00
Joao Moreno
76465f35f8 make control quality aware 2016-02-12 16:26:40 +01:00
Joao Moreno
16f31d80e8 make code.desktop quality aware 2016-02-12 16:11:49 +01:00
Joao Moreno
771257c5ab make linux deb build quality dependent 2016-02-12 15:48:47 +01:00
Joao Moreno
13f7004599 remove VSCODE_PATH from cli, move to linux 2016-02-12 14:51:20 +01:00
Joao Moreno
4821ad5f43 use ELECTRON_RUN_AS_NODE 2016-02-12 12:43:24 +01:00
Joao Moreno
8626f24faa move launcher.js to cli.js 2016-02-12 12:39:37 +01:00
Daniel Imms
fe3988c9a2 Add gulp tasks to build deb packages
Build, install and run:
gulp vscode-linux-packages
sudo dpkg -i out-linux/vscode-amd64.deb
code .

Installing the package does the following:
- Puts VSCode dir at /usr/share/code
- Puts code.sh launcher in /usr/bin
- Defines a .desktop file to properly integrate with the launcher

Fixes #2679
2016-02-11 14:20:34 -08:00
Daniel Imms
1d24e7016b Remove yargs, roll own arg parser 2016-02-09 11:15:05 -08:00
Daniel Imms
84ca9b76c7 Move arg parsing to launcher.js 2016-02-08 21:59:49 -08:00
Daniel Imms
8981819a33 Add Linux/OSX wrapper script
This script wraps the main code executable for Linux and OS X, redirecting
output to a file and running in the background. An exception is made when help
or version argument are used, not suppressing the output as the bootstrap.js is
expected to write to stdout and immediately exit.

Fixes #77
2016-02-03 13:47:34 -08:00
Benjamin Pasero
059e335427 Revert "ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE"
This reverts commit 37dbbb3573.
2016-01-08 17:32:21 +01:00
Benjamin Pasero
37dbbb3573 ATOM_SHELL_INTERNAL_RUN_AS_NODE => ELECTRON_RUN_AS_NODE 2016-01-05 16:32:32 +01:00
Benjamin Pasero
1831ca39f2 Windows: Running code in a console after code.bat was run causes issues (fixes #1438) 2015-12-18 09:21:19 +01:00
Benjamin Pasero
94cba4eb31 better icons for OSS distro 2015-11-17 07:37:42 +01:00
Joao Moreno
d649726399 fixes #28 2015-11-16 12:07:17 +01:00
Benjamin Pasero
4d275980f1 add OSS icon set 2015-11-15 08:30:39 +01:00
Erich Gamma
8f35cc4768 Hello Code 2015-11-13 14:39:38 +01:00