Skip to content

Commit

Permalink
use "/usr/share/native-client/" as the tmp directory during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-portmen committed Nov 3, 2020
1 parent 3078bd0 commit 5607658
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apt/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

/opt/native-client/install.sh
rm -rf /opt/native-client/
/usr/share/native-client/install.sh
rm -rf /usr/share/native-client
3 changes: 3 additions & 0 deletions apt/DEBIAN/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm -rf /usr/share/native-client
1 change: 0 additions & 1 deletion apt/opt/native-client/README

This file was deleted.

1 change: 1 addition & 0 deletions apt/usr/share/native-client/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
temporary storage
4 changes: 2 additions & 2 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cd ..
zip "src_no_node.zip" -9 --symlinks -r * -x "*.DS_Store" -x "*/node/*/node" "windows/node/*/node.exe" "*.zip"

# debian package
unzip linux.zip -d apt/opt/native-client/
cp apt/opt/native-client/uninstall.sh apt/DEBIAN/postrm
cp -L -R linux/* apt/usr/share/native-client
cp ./linux/uninstall.sh apt/DEBIAN/postrm
dpkg-deb --build apt
mv apt.deb linux.deb

0 comments on commit 5607658

Please sign in to comment.