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
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
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
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
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
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
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
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
Daniel Imms
9d75305b7f
Add fix for EACCES socket error
...
Fixes #44758
2018-03-05 10:06:04 -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
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