Commit graph

448 commits

Author SHA1 Message Date
Sergio Schvezov d4da28357f snap launcher: avoid exporting XDG_CACHE_HOME
Exporting XDG_CACHE_HOME affects applications launched from within
the context of code.

Rename it to GDK_CACHE_DIR and do not export it. Also test for
existence before creating to avoid shelling out to mkdir if not
needed.

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
2020-02-21 17:26:57 -03:00
Sergio Schvezov a100802412 snap launcher: fix quoting in script
Avoid any potential issue with globbing or word splitting.

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
2020-02-21 17:23:26 -03:00
Benjamin Pasero 23956cc5e2 update to electron 6.0.x (#81644)
* update to electron 6.0.x

* chore: bump electron@6.0.12
2019-10-10 12:26:28 -07:00
Daniel Imms dfee0337a5
Merge branch 'master' into fix-executable-bits 2019-10-09 15:16:07 -07:00
Niklas Mollenhauer 1cc0b592c2
Remove executable bits from non-executable files 2019-10-08 15:18:42 +02:00
Jonas Platte c109bf77ac
linux/bin/code.sh: use command -v instead of which 2019-10-08 14:02:44 +02:00
Benjamin Pasero da76f05e7a electron - revert to Electron 4 2019-09-30 14:55:17 +02:00
Martin Aeschlimann 798e32cb83 code.sh: pipe error still printed. For https://github.com/microsoft/vscode-remote-release/issues/1420 2019-09-19 16:15:13 +02:00
Benjamin Pasero afde7913eb
build - set no-sandbox everywhere (#81096) 2019-09-18 13:55:03 +02:00
Martin Aeschlimann 945d678d36 uv_pipe_open error when starting code-insiders from WSL microsoft/vscode-remote-release#1420 2019-09-17 18:06:55 +02:00
João Moreno ab10e26096
Fixes #80702 (#80705) 2019-09-11 13:31:42 +02:00
Sergio Schvezov 19526f4123 snap: add assets verbatim (#80585)
* snap: add assets verbatim

Providing the desktop files in snap/gui will have snapcraft copy over
those assets into the snaps meta/gui verbatim.

Addtionally, add a leading ${SNAP} to the Icon entry which was also
moved to snap/gui for the "package" to have an icon by default
(which is important when sideloading).

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

* escape

* fix snapcraft.yml

* use @@EXEC@@ in desktop files

* fix bad path

* fix snap desktop file
2019-09-10 17:12:45 +02:00
navrkald 08580a4671
Skip WLS check if env var DONT_PROMPT_WSL_INSTALL is set. 2019-09-08 13:19:51 +02:00
Martin Aeschlimann 68c1123b33 Code-insiders started from WSL doesn't return to console/ doesn't connect Fixes microsoft/vscode-remote-release#1369 2019-09-06 10:46:53 +02:00
Martin Aeschlimann 587c673c7f wsl2 workaround no longer necessary 2019-09-03 17:51:53 +02:00
Martin Aeschlimann df880b0434 Workaround for broken WSL2 in Win build 18947. For #77898 2019-08-23 15:36:14 +02:00
Aidan Dang 34daff0fd7 Fix trivial zsh completion typo 2019-08-19 14:27:05 +10:00
Miguel Solorio 44a48f75d6 Add installer assets for OSS (#79045) 2019-08-15 06:38:47 +02:00
Joao Moreno 280be12a3a fix zsh completions 2019-08-07 14:51:00 +02:00
Joao Moreno a4e350f76f Merge commit 'refs/pull/66181/head' of github.com:microsoft/vscode into pr/66181 2019-08-07 11:56:18 +02:00
Martin Aeschlimann 49b51b32b2 Run wslCode with electron (fixes vscode-remote-release#914) 2019-07-30 11:41:14 +02:00
Logan Ramos b4734e8524
Filter extensions by category (#77306)
* Revert commit change

* Revert commit change

* Revert commit change

* Revert commit change

* Revert commit change

* Revert commit change

* Provide option to filter by category

* ignore casing

* Remove unwanted build change
2019-07-23 07:29:35 -07:00
Martin Aeschlimann e40623fcb7 Revert "Failure to launch VSCode from WSL2. Fixes microsoft/vscode-remote-release#914"
This reverts commit 0288def891.
2019-07-23 09:17:05 +02:00
Martin Aeschlimann 0f90403c57 windows/code.sh: convert to sh 2019-07-16 17:05:57 +02:00
Martin Aeschlimann 0288def891 Failure to launch VSCode from WSL2. Fixes microsoft/vscode-remote-release#914 2019-07-16 12:21:46 +02:00
Robert Ancell 05ceb5e8ac snapcaft.yaml: Set the AppStream ID in the Snap metadata
This allows software store to recognise this snap matches Visual Studio Code in
other formats (.deb, .rpm, Flatpak etc). It also means reviews on ODRS are
grouped together.
2019-07-02 10:19:28 +12:00
Logan Ramos 4a69a71065
Telemetry Command (#76029)
* Added telemetry command

* Initial Build support

* Added build logic for telemetry

* Linux Builds

* Windows builds sort of work

* Remove arm telemetry extraction

* Remove alpine telemetry extraction

* Remove accidental s

* More try catch
2019-06-24 18:47:12 -07:00
Martin Aeschlimann 99ebdaa7dc Code-insiders started from WSL doesn't return to console/ doesn't connect. Fixes microsoft/vscode-remote-release#780 2019-06-24 18:10:47 +02:00
Matt Bierner 247d61f4f1 Remove log uploader
Fixes #75748
2019-06-20 10:27:36 -07:00
Martin Aeschlimann 769e5d2ad2 win code.sh fix 2019-06-20 16:50:29 +02:00
Martin Aeschlimann 3bffb1561c code doesn't open in remote-wsl under WSL2. For microsoft/vscode-remote-release#714 2019-06-19 11:44:02 +02:00
Benjamin Pasero 73643c60a6
Update to Electron 4.0.x (#73119)
* Bump electron@4.0.0-beta.9

* electron 4 - temporarily warn about exploration change

* update to Electron 4.0.0 stable

* remove electron 4 notification

* bump to electron@4.0.1

* electron 4: adopt format change of "version" file

* build - set to use exploration image

* Revert "build - set to use exploration image"

This reverts commit 1bb280fc5e.

* electron@4.0.2

* fix electron.d.ts

* update distro

* bump electron@4.0.4

* debt - adopt new process.getProcessMemoryInfo()

* update electron@4.0.5

* electron@4.0.6

* electron 4.0.x - remove Linux 32bit build

* electron@4.0.7

* electron - update to 4.1.2

* bump electron@4.1.4

* update build (remove Linux32)

* electron@4.1.5

* electron 4 - remove linux 32bit warning

* Remove more 32-bit Linux build stuff

Fixes #66271

* electron@4.2.0

* electron@4.2.1

* electron@4.2.2

* electron@4.2.3

* Revert "electron@4.2.3"

This reverts commit ae375ef764.

* Revert "Revert "electron@4.2.3""

This reverts commit 513581ebc5.
2019-06-04 10:50:10 +02:00
Martin Aeschlimann ecf9a9f764 code.sh: add datafolder 2019-05-29 23:18:50 +02:00
Martin Aeschlimann b331ec3386 code.sh for wsl: avoid cmd.
Fixes microsoft/vscode-remote-release#42
Fixes microsoft/vscode-remote-release#170
2019-05-23 12:46:09 +02:00
kieferrm 4237ce04c5 change publisher 2019-04-30 23:34:46 +00:00
XTY e44a5ce145 Resolved regression in WSL launch script 2019-04-24 07:40:11 +08:00
Martin Aeschlimann 87fd1d4534 Strange console output when using WSL 2019-04-23 16:05:39 +02:00
Daniel Imms 12cb89c82e Make sure Windows bash CLI works with spaces in user name 2019-04-19 09:46:57 -07:00
Martin Aeschlimann 0dc03a8281 code.cmd: don't use call as it substitites vars in arguments 2019-04-17 23:07:40 +02:00
Martin Aeschlimann e146527fec win/code.sh: falback when wslpath not present 2019-04-16 10:44:44 +02:00
Martin Aeschlimann 84b1474d09 Code Insiders latest update break the code-insiders commands inisde WSL. Fixes #72260 2019-04-15 16:11:31 +02:00
Martin Aeschlimann f999a29671 add quality to win/code.sh 2019-04-12 14:58:29 +02:00
Martin Aeschlimann b7ec5e8e6c Use wsl ext 2019-04-11 09:58:18 +02:00
Martin Aeschlimann d4fba1fa26 Warn about installing VS Code in WSL 2019-04-11 09:57:12 +02:00
Martin Wimpress 24e592c52c snapcraft.yaml: Add the url-handler 2019-03-21 08:49:53 +00:00
Martin Wimpress 7f9406d777 snapcraft.yaml: Source Glib schemas from within the snap. 2019-03-21 08:49:05 +00:00
Martin Wimpress d5c14c6300 snapcraft.yaml: Fallback to XWayland if running in a Wayland session 2019-03-21 08:48:23 +00:00
Martin Wimpress e07c331459 snapcraft.yaml: Remove braces from ${SNAP} in command: 2019-03-21 08:47:13 +00:00
Martin Wimpress 73b7ed584f snapcraft.yaml: Remove unnecessary data from the snap 2019-03-21 08:45:32 +00:00
Martin Wimpress c134334c4c snapcraft.yaml: Update stage-packages
Clean up the stage-packages: to drop any unnecessary libraries and ensure all required libraries to maintain ABI compatibility are bundled in the snap.
2019-03-21 08:44:47 +00:00
Martin Wimpress e91b073155 snapcraft.yaml: Add the GNOME 3.26 PPA.
Adds the PPA for the GNOME 3.26 framework which is maintained by the Ubuntu Desktop team.

This PPA includes GTK3 and GNOME3 components used to create the GNOME 3.26 Framework snap for Ubuntu 16.04.

  * Fixes:  https://github.com/Microsoft/vscode/issues/63194
  * Fixes:  https://github.com/Microsoft/vscode/issues/57019
2019-03-21 08:42:01 +00:00
Martin Wimpress 04639e468c electron-launch: ABI compatible GDK PixBuf modules
Use ABI compatible GDK PixBuf modules from within the snap and build gdk-pixbuf-loaders.cache in the snaps common user data.
2019-03-21 08:34:21 +00:00
Martin Wimpress c8493b459f electron-launch: Create $XDG_CACHE_HOME
Relocate $XDG_CACHE_HOME within the snaps common user data.
2019-03-21 08:32:13 +00:00
Martin Wimpress 07f2bdc176 electron-launch: Add architecture detection 2019-03-21 08:29:33 +00:00
Martin Wimpress 22dc561765 electron-launch: Correctly map the /snap directory on Fedora 2019-03-21 08:28:45 +00:00
Martin Wimpress 16a06aceb3 electron-launch: Use bash 2019-03-21 08:26:07 +00:00
Daniel Imms bd377076bc Fix icon name in rpm spec 2019-03-18 07:14:02 -07:00
Benjamin Pasero ea6ecccb68
debt - avoid approot for resources in renderer (#70237) 2019-03-11 18:43:10 +01:00
Daniel Imms 363e829071 Fix clicking on dock in Ubuntu opening additional windows
Fixes #65460
2019-01-28 06:59:31 -08:00
João Moreno eb69d48499
Merge pull request #65579 from Kedstar99/snapFix
Removed snapUpdate.sh and replaced with inline command
2019-01-28 15:30:29 +01:00
Segev Finer a0a5c9cbee Bundle/Install completions with the correct appname
Fixes #66154
2019-01-08 00:40:15 +02:00
Joao Moreno 493ad1da77 temporary comment out completions 2019-01-07 17:21:02 +01:00
João Moreno a9e56b859d
Merge pull request #56670 from segevfiner/shell-completions
code command completions for Bash & Zsh
2019-01-04 16:11:10 +01:00
Daniel Imms ffe6f7950e Drop gconf dependency
Fixes #62580
2018-12-27 11:03:06 -08:00
Krish De Souza 4c02c554ce Removed snapUpdate.sh and replaced with inline command
+Simplifies the build process.
+Avoids creating a new shell that simply spawns another shell environment.
+Simplifies the update mechanism by removing the need to track the existence of snapUpdate.sh.
+Keeps the logic for snapUpdate.sh close to updateService.snap.ts
2018-12-22 11:53:22 +05:30
Krish De Souza d37f1c01ec Fixed snapUpdate.sh to use environment variable to spawn a new instance of vscode. 2018-12-06 11:36:36 +00:00
David Bailey 6c0718df37
Remove StartupWMClass from URL handler desktop file 2018-11-25 19:43:27 +00:00
Miguel Solorio 4533aa0c0a
Merge pull request #62739 from RDIL/master
Optimize images
2018-11-08 08:42:57 -08:00
Joao Moreno 5c3e3ec85a snap updates 2018-11-08 14:44:32 +00:00
Joao Moreno df6ca821a6 remove args from electron launch 2018-11-07 12:41:17 +00:00
Joao Moreno 4ae69c8c4a cleanup snapcraft.yaml 2018-11-07 12:41:03 +00:00
ImgBotApp d412f89baf
[ImgBot] Optimize images
*Total -- 201.93kb -> 142.81kb (29.28%)

/extensions/npm/images/npm_icon.png -- 3.21kb -> 0.51kb (84.1%)
/src/vs/workbench/parts/debug/electron-browser/media/stepout-tb.png -- 2.89kb -> 0.47kb (83.83%)
/src/vs/workbench/parts/debug/electron-browser/media/stop-tb.png -- 1.50kb -> 0.35kb (76.43%)
/src/vs/workbench/parts/debug/electron-browser/media/pause-tb.png -- 1.55kb -> 0.37kb (76.34%)
/src/vs/workbench/browser/parts/editor/media/forward-tb.png -- 1.57kb -> 0.37kb (76.25%)
/src/vs/workbench/browser/parts/editor/media/back-tb.png -- 1.52kb -> 0.37kb (75.53%)
/src/vs/workbench/parts/debug/electron-browser/media/continue-tb.png -- 1.60kb -> 0.42kb (73.48%)
/src/vs/workbench/parts/debug/electron-browser/media/stepinto-tb.png -- 1.66kb -> 0.47kb (71.51%)
/src/vs/workbench/parts/debug/electron-browser/media/restart-tb.png -- 1.91kb -> 0.59kb (68.84%)
/src/vs/workbench/parts/debug/electron-browser/media/stepover-tb.png -- 1.93kb -> 0.62kb (67.75%)
/resources/linux/code.png -- 5.76kb -> 2.66kb (53.86%)
/extensions/html-language-features/icons/html.png -- 4.40kb -> 2.28kb (48.15%)
/extensions/theme-seti/icons/seti-circular-128x128.png -- 8.73kb -> 4.70kb (46.12%)
/extensions/typescript-language-features/icon.png -- 1.60kb -> 0.97kb (39.15%)
/src/vs/platform/extensionManagement/node/media/defaultIcon.png -- 1.65kb -> 1.03kb (37.49%)
/src/vs/workbench/parts/extensions/electron-browser/media/defaultIcon.png -- 1.65kb -> 1.03kb (37.49%)
/extensions/vscode-api-tests/testWorkspace/sub/image.png -- 35.87kb -> 24.99kb (30.33%)
/extensions/vscode-api-tests/testWorkspace/image.png -- 35.87kb -> 24.99kb (30.33%)
/resources/win32/code_150x150.png -- 0.55kb -> 0.39kb (29.96%)
/extensions/css-language-features/icons/css.png -- 5.07kb -> 3.63kb (28.37%)
/extensions/json-language-features/icons/json.png -- 5.84kb -> 4.33kb (25.89%)
/extensions/markdown-language-features/icon.png -- 1.19kb -> 0.88kb (25.86%)
/src/vs/workbench/parts/extensions/electron-browser/media/theme-icon.png -- 9.90kb -> 7.42kb (25.1%)
/extensions/php-language-features/icons/logo.png -- 10.85kb -> 8.99kb (17.13%)
/extensions/gulp/images/gulp.png -- 7.36kb -> 6.20kb (15.8%)
/extensions/merge-conflict/resources/icons/merge-conflict.png -- 2.47kb -> 2.10kb (14.96%)
/extensions/jake/images/cowboy_hat.png -- 43.85kb -> 41.67kb (4.98%)
2018-11-06 20:46:03 +00:00
Joao Moreno 9c4b3954c2 update snapcraft.yaml 2018-11-06 16:16:35 +00:00
Joao Moreno e840e83ff9 set executable bits 2018-11-06 15:08:02 +00:00
Joao Moreno 29a6e3d3ca Merge remote-tracking branch 'origin/master' into tyriar/snap 2018-11-04 13:58:08 +01:00
Miguel Solorio 3ace1898e7 Update file icons to use file type icon in small views 2018-10-11 11:49:15 -07:00
Martin Aeschlimann 9588b6fe87 Launching "code" from git bash fails with "cannot find module" error. Fixes #58950 2018-10-03 10:22:37 +02:00
Dick van den Brink 1adea8bd02
Fixed warning when installing on debian 8
Message in console:
Setting up code-insiders (1.28.0-1537855491) ...
/usr/share/applications/code-insiders-url-handler.desktop: warning: key "MimeType" is a list and does not have a semicolon as trailing character, fixing
2018-09-26 01:23:57 +02:00
Jay Rodgers 299b111bbf
Adding missed dependency libxss1
In releasing for Chromebook I'm working on a minimal installation, so the base distribution has less packages pre-installed.

libxss1 is both a compile-time and run-time dependency, which would appear to have been missed (on my system it causes run-time errors if it's not present, due to the absence of libXss.so.1). I would expect this to cause the same issue on other minimal Debian installations.
2018-09-23 13:47:21 +01:00
Segev Finer c0895eb214 Merge remote-tracking branch 'upstream/master' into shell-completions 2018-09-22 19:48:51 +03:00
Miguel Solorio 94f40a180e Update file icons to show logo on small versions (#58986) 2018-09-20 07:40:10 +02:00
Benjamin Pasero a181a96d1c
Provide file icons per file type (#58795)
* first cut icons per file type (for #4845)

* update icon set

* update distro

* tweaks

* update distro
2018-09-17 11:09:47 +02:00
Segev Finer cecaba689a Merge in upstream changes to the Zsh completion script
def92fc006
2018-09-13 22:24:17 +03:00
João Moreno a5c6208343
Merge pull request #56943 from jats22/46123
Fix #46123 : Remove absolute path for python
2018-09-13 14:33:28 +02:00
Joao Moreno 0ac298f773 replace url protocol in code-url-handler 2018-09-13 11:14:47 +02:00
sandilya 84b3ef6b58 Fix #46123 : Remove absolute path for python 2018-08-22 01:49:22 +05:30
Segev Finer 8f83890068 Add URL handler support for Linux desktops
Fixes #48528
2018-08-18 04:56:34 +03:00
Segev Finer ccceaa2f52 Automatically install Bash and Zsh completions in deb/rpm 2018-08-17 14:21:23 +03:00
Segev Finer 20d5a6bb25 Add Bash completion script 2018-08-17 14:21:23 +03:00
Segev Finer 7c6b5eba5a Update Zsh completion script
Adding new options and updating help text to be closer to the commands
help text.
2018-08-17 14:21:22 +03:00
Segev Finer 9bcb083b48 Add Zsh completion script from Zsh sources
Originally from:
https://github.com/zsh-users/zsh/blob/master/Completion/X/Command/_code
2018-08-17 14:21:22 +03:00
Christof Marti 025d7e6eeb Include epoch (#55008) 2018-07-31 15:27:42 +02:00
Daniel Imms 2f12e41343 Require libnss3 >= 3.26 to match Chromium 2018-07-25 06:38:03 -07:00
Daniel Imms 5dc414cbc9 Revert "Merge pull request #54854 from Microsoft/revert-52782-electron-2.0.x"
This reverts commit 90fc7e66e2, reversing
changes made to 3b25417fa2.
2018-07-23 07:34:16 -07:00
Sandeep Somavarapu 1dc23e548e
Revert "Update to Electron 2.0.x" 2018-07-23 10:58:49 +02:00
Benjamin Pasero 9459d2aae0 Update to Electron 2.0.x 2018-06-25 09:32:06 +02:00
Benjamin Pasero e47a9c9eef revert electron 2.0.x update 2018-06-25 09:28:34 +02:00
Benjamin Pasero e7d29e9ccc
Electron v2.0.0 (#48290)
* Update to Electron 2.0-beta.7

* back to exploration build

* fix compile errors

* workaround build issue (go back to 1.24.0)

* bump to 1.25.0

* use electron 2.0.2

* revert custom distro
2018-06-08 18:32:49 +02:00
Daniel Imms 005666c43e
Merge pull request #44945 from 0xabu/wsl-cli-fix
enable CLI when invoked from WSL on modern (RS4) hosts
2018-05-15 07:26:32 -07:00
Benjamin Pasero 1aa0bb83bc Revert "Require gtk 3 on Linux"
This reverts commit 2e6a761f8c.
2018-04-20 17:22:30 +02:00
Daniel Imms 2e6a761f8c Require gtk 3 on Linux
Part of #47158
2018-04-13 11:42:58 -07:00
Daniel Imms 9f2511fa8a Merge remote-tracking branch 'origin/master' into tyriar/snap 2018-03-18 08:13:43 -07:00
Daniel Imms 9d75305b7f Add fix for EACCES socket error
Fixes #44758
2018-03-05 10:06:04 -08:00
Daniel Imms 474568c55b Merge remote-tracking branch 'origin/master' into tyriar/snap 2018-03-05 10:03:33 -08:00
Joao Moreno 12ab70d329 fix line endings 2018-03-05 12:47:11 +01:00
Andrew Baumann 8505dcc469 enable CLI when invoked from WSL on modern (RS4) hosts
Fixes issue #39892

There's one minor gotchya: this script tests for a modern WSL release
(which supports the WSLENV feature) using the existence of
/bin/wslpath. Per https://docs.microsoft.com/en-us/windows/wsl/release-notes,
wslpath was added in build 17046 but WSLENV is only supported in
the subsequent build (17063). Both those builds were only shipped as
Windows insider builds, so this test should be safe enough.
2018-03-02 11:17:03 -08:00
钊哥 c8e3e33045
Wrong placeholder in the .desktop file 2018-02-28 23:54:41 +08:00
peidaqi 100b58a1ed
Making the script work with both Python2 and 3
Added enclosing parenthesis to the print() statement so it works if the sys default python is changed to Python3.
2018-02-10 06:42:52 -08:00
Daniel Imms 79b79309ce Call a script on update 2018-02-08 09:09:12 -08:00
Daniel Imms 90385c778b Remove post-refresh hook 2018-02-07 11:13:50 -08:00
Daniel Imms d9fd598afd Fix post refresh hook to use electron-launch 2018-02-02 12:04:27 -08:00
Daniel Imms 648a5b0869 Fix post refresh hook 2018-02-02 10:26:26 -08:00
Daniel Imms 79786dcdf2 Add a test post refresh hook 2018-02-01 18:23:17 -08:00
Daniel Imms 2d1b17d100 Include more stage packages in snap 2018-01-31 18:01:56 -08:00
Daniel Imms 195aa35bb3 Remove unnecessar snap deps 2018-01-31 16:06:19 -08:00
Daniel Imms 1d8b6bd409 Update snap build 2018-01-31 15:44:11 -08:00
Benjamin Pasero 262660203e fix #41429 2018-01-12 07:27:30 +01:00
Benjamin Pasero 549cda29da 💄 2017-12-20 16:57:40 +01:00
Benjamin Pasero 4e9cd88e37 save as admin - handle case for readonly files 2017-12-14 15:50:21 +01:00
Benjamin Pasero ff9c9e5966 allow to run CLI as root when running --write-elevated-helper 2017-12-12 16:25:36 +01:00
Daniel Imms a25c3980e7 Improve wording when launching from sudo 2017-11-28 12:16:43 -08:00
Daniel Imms 633901769a Rename New Window action to New Empty Window
New versions of Gnome name the default action as New Window, this breaks
workspace restoring under Ubuntu 17.10 and presumably other distros on the
same verison of Gnome as well.

Fixes #36695
2017-10-25 10:23:59 -07:00
Daniel Imms e29c517386 Revert "replace bash shebang with '#!/usr/bin/env bash" for portability"
This reverts commit 86dace91a2.
2017-10-06 09:33:22 -07:00
Julian Andres Klode e073e848d7 Correctly get apt dirs in debian postinst
This previously used some crazy hack to parse the output of
`apt-config dump`, instead of using `apt-config shell` like
you are supposed to do.
2017-10-03 18:42:17 +02:00
Daniel Imms 081a57ca96 Remove epoch from snap package 2017-10-02 13:34:07 -07:00
Daniel Imms e05b15cd12 Clean up comment 2017-10-02 13:33:30 -07:00
Daniel Imms d2b2b4d7ea Add support for building x64 snap package 2017-09-26 14:18:00 -04:00
Putta Khunchalee 86dace91a2 replace bash shebang with '#!/usr/bin/env bash" for portability 2017-09-17 21:19:08 +07:00
Benjamin Pasero c41f3bf5c3 💄 color 2017-09-05 09:55:33 +02:00
Benjamin Pasero 9fa0a77edd Windows: logo does not have a specific background (fixes #33362) 2017-09-05 08:00:59 +02:00
Benjamin Pasero d77532402a linux: remove background color from icon for now 2017-08-31 09:26:29 +02:00
Benjamin Pasero e243bad3f2 set background color for code icon on linux 2017-08-23 07:37:19 +02:00
Daniel Imms 189a17e23c Use %F for new windows too
Part of ##25987
2017-07-31 13:17:38 -07:00
Daniel Imms 2c745007c3 Use %F in code.desktop instead of %U
%U may pass in file:// format which isn't supported.

Fixes #25987
2017-07-31 11:57:37 -07:00
Christof Marti 3bdbece14d Proposed credentials API: Linux dependencies 2017-07-18 16:01:31 -07:00
Benjamin Pasero de4b5be4c6 Move our watermark to resources so that distro can pick it up (#30256)
* move watermark to resources folder

* add to build

* 💄

* update distro

* update distro
2017-07-12 08:57:37 +02:00
Daniel Imms 69e4e5bc46 Don't use the CLI for the desktop entry
Fixes #24961
2017-04-27 10:24:04 -07:00
Daniel Imms 43e059e651 Add libgconf-2-4 as a .deb dependency
Fixes #24945
2017-04-21 09:45:52 -07:00
Daniel Imms a7cd47d55a Merge pull request #24523 from romulo1984/master
Update Exec param at code.desktop
2017-04-18 14:26:27 -07:00
Daniel Imms 6c9ead0321 Update VS Code source list if disabled by OS upgrade
Fixes #24898
2017-04-17 10:08:54 -07:00
Rômulo Guimarães b31dde368f Update Exec param at code.desktop
The `/usr/share/code/code/` path opens a new window with errors.
Adding bin to the path fixes it.
2017-04-11 12:23:42 -03:00
Daniel Imms eb6e5e207b Use better libxkbfile dep
Fixes #23261
2017-04-03 07:33:01 -07:00
Daniel Imms 68e6886423 Add libxkbfile-dev(el) as Linux package deps
Fixes #23261
2017-03-29 14:52:15 -07:00
Lorenzo Tilve 554029f6e9
Make more descriptive appdata summary field 2017-03-21 18:55:08 +02:00
Daniel Imms 4db944bc08 Install apt repository as http, not https
Fixes #21654
2017-03-01 22:42:52 -08:00
Daniel Imms 713a4d6297 Merge pull request #20988 from fsateler/patch-2
Add gnupg and apt to depends
2017-02-27 15:09:08 -08:00
Christof Marti fc92ea41fd Do not force new window when opening file or folder with launch on Unity (fixes #21133) 2017-02-23 11:07:51 -08:00
Felipe Sateler b3a033b80d Add gnupg and apt to depends
The postinst template uses tools from those packages.

Normally they are installed in most systems. However, this is not guaranteed. Lets make it guaranteed.
2017-02-21 09:53:53 -03:00
Daniel Imms 735a7c0cd7 Only install repo and key if they don't already exist 2017-02-16 23:12:36 -08:00
Daniel Imms f976701c85 Install apt key and source for repository in deb postinst
Part of #2973
2017-02-16 22:34:49 -08:00
Daniel Imms 496b804f8a Prime postinst for apt repo 2017-02-15 22:50:02 -08:00
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