mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
Simplify how the chia symlink is created in the CLI .deb (#11188)
This commit is contained in:
parent
511c13e632
commit
82c01ff2bc
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
ln -s /opt/chia/chia /usr/local/bin/chia
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
unlink /usr/local/bin/chia
|
@ -49,12 +49,11 @@ fi
|
||||
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/usr/bin"
|
||||
mkdir -p "dist/$CLI_DEB_BASE/DEBIAN"
|
||||
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/"
|
||||
ln -s ../../opt/chia/chia "dist/$CLI_DEB_BASE/usr/bin/chia"
|
||||
dpkg-deb --build --root-owner-group "dist/$CLI_DEB_BASE"
|
||||
# CLI only .deb done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user