Skip to content

Commit 58335da

Browse files
authored
Merge pull request #800 from jupyterlab/add-cli-support-for-snap
add jlab CLI for snap
2 parents 05ea8ce + 8441f9a commit 58335da

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh -e
2+
3+
APP_PATH=$SNAP/jupyterlab-desktop
4+
ln -s "$APP_PATH" /usr/bin/jlab
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh -e
2+
3+
rm /usr/bin/jlab

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
"environment": {
109109
"SHELL": "/bin/bash",
110110
"GTK_USE_PORTAL":"1"
111-
}
111+
},
112+
"hooks": "build/snap-hooks"
112113
},
113114
"win": {
114115
"target": [

scripts/copyassets.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ function copyAssests() {
9999
),
100100
path.join(buildDir, 'linux_after_install.sh')
101101
);
102+
fs.copySync(
103+
path.join(path.resolve('./'), 'electron-builder-scripts', 'snap-hooks'),
104+
path.join(buildDir, 'snap-hooks'),
105+
{
106+
recursive: true
107+
}
108+
);
102109
}
103110

104111
console.log('done');

0 commit comments

Comments
 (0)