Skip to content

Commit

Permalink
Merge pull request #800 from jupyterlab/add-cli-support-for-snap
Browse files Browse the repository at this point in the history
add jlab CLI for snap
  • Loading branch information
mbektas authored Mar 18, 2024
2 parents 05ea8ce + 8441f9a commit 58335da
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions electron-builder-scripts/snap-hooks/configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh -e

APP_PATH=$SNAP/jupyterlab-desktop
ln -s "$APP_PATH" /usr/bin/jlab
3 changes: 3 additions & 0 deletions electron-builder-scripts/snap-hooks/remove
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh -e

rm /usr/bin/jlab
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
"environment": {
"SHELL": "/bin/bash",
"GTK_USE_PORTAL":"1"
}
},
"hooks": "build/snap-hooks"
},
"win": {
"target": [
Expand Down
7 changes: 7 additions & 0 deletions scripts/copyassets.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ function copyAssests() {
),
path.join(buildDir, 'linux_after_install.sh')
);
fs.copySync(
path.join(path.resolve('./'), 'electron-builder-scripts', 'snap-hooks'),
path.join(buildDir, 'snap-hooks'),
{
recursive: true
}
);
}

console.log('done');
Expand Down

0 comments on commit 58335da

Please sign in to comment.