diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c01580..98ea451 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: apt install -y curl zip curl -sL https://deb.nodesource.com/setup_12.x | bash - apt install -y nodejs - + npx run: | bash build-arm-build.sh - run: bash build-arm-post.sh diff --git a/build-arm-build.sh b/build-arm-build.sh index 15558f1..0bd8c01 100644 --- a/build-arm-build.sh +++ b/build-arm-build.sh @@ -1,5 +1,4 @@ #!/bin/bash echo "Packing binaries" -cd .. npx pkg ./build-env -t node10.15.3-linux-armv7 -o ./build/asphyxia-core --options no-warnings diff --git a/build-arm-pre.sh b/build-arm-pre.sh index b4defea..ae7e033 100644 --- a/build-arm-pre.sh +++ b/build-arm-pre.sh @@ -2,7 +2,7 @@ mkdir -p build -regex='VERSION = '"'"'(.*)'"'"'' +regex='VERSION = '"'"'([a-z0-9.]*)'"'"'' [[ $(cat ./src/utils/Consts.ts) =~ $regex ]] VERSION=${BASH_REMATCH[1]} diff --git a/build-linux.sh b/build-linux.sh index 49621d1..a644d82 100644 --- a/build-linux.sh +++ b/build-linux.sh @@ -2,7 +2,7 @@ mkdir -p build -regex='VERSION = '"'"'(.*)'"'"'' +regex='VERSION = '"'"'([a-z0-9.]*)'"'"'' [[ $(cat ./src/utils/Consts.ts) =~ $regex ]] VERSION=${BASH_REMATCH[1]}