From efc99cbf5ef21f758e3bd9e3920e1c4d91d1fd37 Mon Sep 17 00:00:00 2001 From: Freddie Wang Date: Sat, 10 Apr 2021 11:24:14 +0800 Subject: [PATCH] fastererer arm build --- .github/workflows/build.yml | 2 +- build-arm-build.sh | 1 - build-arm-pre.sh | 2 +- build-linux.sh | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) 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]}