-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35317 from Microsoft/tyriar/snap
Add gulp tasks to build snap packages
- Loading branch information
Showing
8 changed files
with
162 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
if test "$1" = "classic"; then | ||
shift | ||
case $SNAP_ARCH in | ||
amd64) | ||
TRIPLET="x86_64-linux-gnu" | ||
;; | ||
armhf) | ||
TRIPLET="arm-linux-gnueabihf" | ||
;; | ||
arm64) | ||
TRIPLET="aarch64-linux-gnu" | ||
;; | ||
*) | ||
TRIPLET="$(uname -p)-linux-gnu" | ||
;; | ||
esac | ||
|
||
# TODO: Swap LD lib paths whenever processes are launched | ||
export LD_LIBRARY_PATH_OLD=$LD_LIBRARY_PATH | ||
export LD_LIBRARY_PATH=$SNAP/usr/lib:$SNAP/usr/lib/$TRIPLET:$LD_LIBRARY_PATH | ||
export LD_LIBRARY_PATH=$SNAP/lib:$SNAP/lib/$TRIPLET:$LD_LIBRARY_PATH | ||
fi | ||
|
||
# Correct the TMPDIR path for Chromium Framework/Electron to ensure | ||
# libappindicator has readable resources. | ||
export TMPDIR=$XDG_RUNTIME_DIR | ||
|
||
exec ${SNAP}/bin/desktop-launch $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: @@NAME@@ | ||
version: @@VERSION@@ | ||
summary: Code editing. Redefined. | ||
description: | | ||
Visual Studio Code is a new choice of tool that combines the | ||
simplicity of a code editor with what developers need for the core | ||
edit-build-debug cycle. | ||
grade: stable | ||
confinement: classic | ||
|
||
parts: | ||
code: | ||
plugin: dump | ||
source: . | ||
after: | ||
- desktop-gtk2 | ||
stage-packages: | ||
- gconf2 | ||
- libasound2 | ||
- libnotify4 | ||
- libnspr4 | ||
- libnss3 | ||
- libpulse0 | ||
- libxss1 | ||
- libxtst6 | ||
prime: | ||
- -usr/share/dh-python | ||
electron-launch: | ||
plugin: dump | ||
source: . | ||
organize: | ||
electron-launch: bin/electron-launch | ||
prime: | ||
- -monitor.sh | ||
- -OLD_VERSION | ||
- -*.bz2 | ||
|
||
apps: | ||
@@NAME@@: | ||
command: bin/electron-launch classic ${SNAP}/usr/share/@@NAME@@/bin/@@NAME@@ | ||
desktop: usr/share/applications/@@NAME@@.desktop |