Skip to content

Commit

Permalink
Add symlink to chia in /usr/local/bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Apr 14, 2022
1 parent cb03e10 commit 0b7d992
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
File renamed without changes.
5 changes: 5 additions & 0 deletions build_scripts/assets/deb/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

ln -s /opt/chia/chia /usr/local/bin/chia
5 changes: 5 additions & 0 deletions build_scripts/assets/deb/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

unlink /usr/local/bin/chia
5 changes: 4 additions & 1 deletion build_scripts/build_linux_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ pip install j2cli
CLI_DEB_BASE="chia-blockchain-cli_$CHIA_INSTALLER_VERSION-1_$PLATFORM"
mkdir -p "dist/$CLI_DEB_BASE/opt/chia"
mkdir -p "dist/$CLI_DEB_BASE/DEBIAN"
j2 -o "dist/$CLI_DEB_BASE/DEBIAN/control" control.j2
j2 -o "dist/$CLI_DEB_BASE/DEBIAN/control" assets/deb/control.j2
cp assets/deb/postinst "dist/$CLI_DEB_BASE/DEBIAN/postinst"
cp assets/deb/prerm "dist/$CLI_DEB_BASE/DEBIAN/prerm"
chmod 0755 "dist/$CLI_DEB_BASE/DEBIAN/postinst" "dist/$CLI_DEB_BASE/DEBIAN/prerm"
cp -r dist/daemon/* "dist/$CLI_DEB_BASE/opt/chia/"
dpkg-deb --build --root-owner-group "dist/$CLI_DEB_BASE"
# CLI only .deb done
Expand Down

0 comments on commit 0b7d992

Please sign in to comment.