diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eee1586c..21b65402 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -148,7 +148,7 @@ jobs: echo "PATH=${{ steps.musl.outputs.path }}:$PATH" >> $GITHUB_ENV echo "CC=${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}-gcc" >> $GITHUB_ENV echo "CXX=${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}-g++" >> $GITHUB_ENV - echo "LD_FLAGS=--extldflags '-static'" >> $GITHUB_ENV + echo "LD_FLAGS=-w --extldflags '-static'" >> $GITHUB_ENV - name: Install darwin cross compiler if: env.GOOS == 'darwin' @@ -159,7 +159,7 @@ jobs: echo "PATH=$(pwd)/crossosx/bin/:$PATH" >> $GITHUB_ENV echo "CC=${{ env.ARCH_NAME }}-clang" >> $GITHUB_ENV echo "CXX=${{ env.ARCH_NAME }}-clang++" >> $GITHUB_ENV - echo "LD_FLAGS=-s -w" >> $GITHUB_ENV + echo "LD_FLAGS=-w" >> $GITHUB_ENV - name: Download frontend artifacts uses: actions/download-artifact@v3 @@ -183,7 +183,7 @@ jobs: run: | cp README*.md ./dist find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T - - openssl dgst -sha512 ${{ env.DIST }}.tar.gz | sed 's/([^)]*)//g' >> ${{ env.DIST }}.tar.gz.digest + openssl dgst -sha512 ${{ env.DIST }}.tar.gz | sed 's/([^)]*)//g' | awk '{print $NF}' >> ${{ env.DIST }}.tar.gz.digest - name: Publish uses: softprops/action-gh-release@v1 diff --git a/build.sh b/build.sh index 71b9a142..79450485 100755 --- a/build.sh +++ b/build.sh @@ -3,6 +3,6 @@ CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc \ CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags \ "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go -docker build -t nginx-ui . +# docker build -t nginx-ui . # docker tag nginx-ui uozi/nginx-ui # docker push uozi/nginx-ui diff --git a/go.mod b/go.mod index 7dc6f17a..db3a8dec 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/0xJacky/Nginx-UI -go 1.19 +go 1.20 require ( github.com/BurntSushi/toml v1.2.1