Skip to content

Commit

Permalink
Revert "chore: workaround apps._app_name_.command restriction"
Browse files Browse the repository at this point in the history
This reverts commit 9c8cc0b.
  • Loading branch information
deepak1556 committed Jul 20, 2021
1 parent 885f67d commit 27244ce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion build/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ module.exports.indentationFilter = [
'!src/vs/base/node/terminateProcess.sh',
'!src/vs/base/node/cpuUsage.sh',
'!test/unit/assert.js',
'!resources/linux/snap/electron-launch',
'!build/ext.js',

// except specific folders
Expand Down
5 changes: 1 addition & 4 deletions build/gulpfile.vscode.linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ function prepareSnapPackage(arch) {
.pipe(replace('@@ARCHITECTURE@@', arch === 'x64' ? 'amd64' : arch))
.pipe(rename('snap/snapcraft.yaml'));

const electronLaunch = gulp.src('resources/linux/snap/electron-launch', { base: '.' })
.pipe(rename('electron-launch'));

const all = es.merge(desktops, icon, code, snapcraft, electronLaunch);
const all = es.merge(desktops, icon, code, snapcraft);

return all.pipe(vfs.dest(destination));
};
Expand Down
3 changes: 0 additions & 3 deletions resources/linux/snap/electron-launch

This file was deleted.

13 changes: 2 additions & 11 deletions resources/linux/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ compression: lzo
grade: stable
confinement: classic
base: core18
assumes:
- snapd2.43

parts:
code:
Expand Down Expand Up @@ -60,17 +58,10 @@ parts:
[ -d squashfs-root/ ] || exit 1
mkdir -pv $SNAPCRAFT_PART_INSTALL/gnome-platform
cp -a squashfs-root/* $SNAPCRAFT_PART_INSTALL/gnome-platform
electron-launch-wrapper:
source: .
plugin: dump
after:
- code
organize:
electron-launch : bin/electron-launch
apps:
@@NAME@@:
command: bin/electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox
command: $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox
common-id: @@NAME@@.desktop
command-chain:
- snap/command-chain/desktop-launch
Expand All @@ -87,7 +78,7 @@ apps:
SNAP_DESKTOP_RUNTIME: $SNAP/gnome-platform

url-handler:
command: bin/electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox
command: $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox
command-chain:
- snap/command-chain/desktop-launch
plugs:
Expand Down

0 comments on commit 27244ce

Please sign in to comment.