mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
artifact fpm generated rpm .spec
files (#16984)
This commit is contained in:
parent
4e514dcb2b
commit
e38fa4d878
@ -183,6 +183,13 @@ jobs:
|
|||||||
cd ./build_scripts
|
cd ./build_scripts
|
||||||
bash build_linux_rpm-2-installer.sh amd64
|
bash build_linux_rpm-2-installer.sh amd64
|
||||||
|
|
||||||
|
- name: Upload fpm-generated rpm spec files
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
if-no-files-found: error
|
||||||
|
name: spec
|
||||||
|
path: build_scripts/dist/*.spec
|
||||||
|
|
||||||
- name: Upload Linux artifacts
|
- name: Upload Linux artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -59,10 +59,14 @@ ln -s ../../opt/chia/chia "dist/$CLI_RPM_BASE/usr/bin/chia"
|
|||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
. /etc/profile.d/rvm.sh
|
. /etc/profile.d/rvm.sh
|
||||||
rvm use ruby-3
|
rvm use ruby-3
|
||||||
|
|
||||||
|
export FPM_EDITOR="cat >dist/cli.spec <"
|
||||||
|
|
||||||
# /usr/lib64/libcrypt.so.1 is marked as a dependency specifically because newer versions of fedora bundle
|
# /usr/lib64/libcrypt.so.1 is marked as a dependency specifically because newer versions of fedora bundle
|
||||||
# libcrypt.so.2 by default, and the libxcrypt-compat package needs to be installed for the other version
|
# libcrypt.so.2 by default, and the libxcrypt-compat package needs to be installed for the other version
|
||||||
# Marking as a dependency allows yum/dnf to automatically install the libxcrypt-compat package as well
|
# Marking as a dependency allows yum/dnf to automatically install the libxcrypt-compat package as well
|
||||||
fpm -s dir -t rpm \
|
fpm -s dir -t rpm \
|
||||||
|
--edit \
|
||||||
-C "dist/$CLI_RPM_BASE" \
|
-C "dist/$CLI_RPM_BASE" \
|
||||||
--directories "/opt/chia" \
|
--directories "/opt/chia" \
|
||||||
-p "dist/$CLI_RPM_BASE.rpm" \
|
-p "dist/$CLI_RPM_BASE.rpm" \
|
||||||
@ -86,6 +90,9 @@ cd ../chia-blockchain-gui/packages/gui || exit 1
|
|||||||
cp package.json package.json.orig
|
cp package.json package.json.orig
|
||||||
jq --arg VER "$CHIA_INSTALLER_VERSION" '.version=$VER' package.json > temp.json && mv temp.json package.json
|
jq --arg VER "$CHIA_INSTALLER_VERSION" '.version=$VER' package.json > temp.json && mv temp.json package.json
|
||||||
|
|
||||||
|
export FPM_EDITOR="cat >../../../build_scripts/dist/gui.spec <"
|
||||||
|
jq '.build.rpm.fpm |= . + ["--edit"]' package.json > temp.json && mv temp.json package.json
|
||||||
|
|
||||||
echo "Building Linux(rpm) Electron app"
|
echo "Building Linux(rpm) Electron app"
|
||||||
OPT_ARCH="--x64"
|
OPT_ARCH="--x64"
|
||||||
if [ "$REDHAT_PLATFORM" = "arm64" ]; then
|
if [ "$REDHAT_PLATFORM" = "arm64" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user