From aca1dd618d2064ae714c18c699b750f1a29f7a5c Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Wed, 21 Aug 2024 00:53:27 -0400 Subject: [PATCH] Switch around crx3 versions --- .github/workflows/ant.yml | 8 ++++---- tools.sh | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 4 deletions(-) create mode 100755 tools.sh diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml index 92dd4c9..7bfa23d 100644 --- a/.github/workflows/ant.yml +++ b/.github/workflows/ant.yml @@ -24,7 +24,7 @@ jobs: echo "build.built-by=GitHub Actions" >> override.properties echo "noExe=true" >> override.properties - name: install crx3 - run: wget -O $(go env GOPATH)/bin/crx3 https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-linux + run: mkdir -p $(go env GOPATH)/bin; wget -O $(go env GOPATH)/bin/crx3 https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-linux; chmod +x $(go env GOPATH)/bin/crx3 - name: install dzip run: go install github.com/delicb/dzip@latest - name: install amo-version @@ -115,7 +115,7 @@ jobs: echo "build.built-by=GitHub Actions" >> override.properties echo "noExe=true" >> override.properties - name: install crx3 - run: wget -O $(go env GOPATH)/bin/crx3 https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-linux + run: mkdir -p $(go env GOPATH)/bin; wget -O $(go env GOPATH)/bin/crx3 https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-linux; chmod +x $(go env GOPATH)/bin/crx3 - name: install dzip run: go install github.com/delicb/dzip@latest - name: install amo-version @@ -155,7 +155,7 @@ jobs: bash -c 'echo "build.built-by=GitHub Actions" >> override.properties' bash -c 'echo "noExe=true" >> override.properties' - name: install crx3 - run: wget -O $(go env GOPATH)/bin/crx3.exe https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-windows + run: go install github.com/mediabuyerbot/go-crx3/crx3@latest - name: install dzip run: go install github.com/delicb/dzip@latest - name: install amo-version @@ -211,7 +211,7 @@ jobs: bash -c 'echo "build.built-by=GitHub Actions" >> override.properties' bash -c 'echo "noExe=true" >> override.properties' - name: install crx3 - run: wget -O $(go env GOPATH)/bin/crx3 https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-osx + run: mkdir -p $(go env GOPATH)/bin; wget -O $(go env GOPATH)/bin/crx3 https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/build-tools/crx3-osx; chmod +x $(go env GOPATH)/bin/crx3 - name: install dzip run: go install github.com/delicb/dzip@latest - name: install amo-version diff --git a/tools.sh b/tools.sh new file mode 100755 index 0000000..20a9291 --- /dev/null +++ b/tools.sh @@ -0,0 +1,43 @@ +#! /usr/bin/env sh + +. ./config.sh +#./preprelease.sh +github-release release --user "${GITHUB_USER}" \ + --repo "${GITHUB_REPO}" \ + --name "Build Tools" \ + --description "binaries required for generating the profiles" \ + --tag "build-tools"; true +echo "Uploading generated build-tools" +sleep 2s +torsum=$(sha256sum $HOME/go/bin/crx3 | sed "s|$HOME||g") +echo "$torsum" +github-release upload --user "${GITHUB_USER}" \ + --replace \ + --repo "${GITHUB_REPO}" \ + --tag "build-tools" \ + --label "crx3 for Linux. ${torsum}" \ + --name "crx3-linux" \ + --file "$HOME/go/bin/crx3" +echo "Uploaded crx3 linux package" +torsum=$(sha256sum $HOME/go/bin/darwin_amd64/crx3 | sed "s|$HOME||g") +echo "$torsum" +github-release upload --user "${GITHUB_USER}" \ + --replace \ + --repo "${GITHUB_REPO}" \ + --tag "build-tools" \ + --label "crx3 for Mac. ${torsum}" \ + --name "crx3-osx" \ + --file "$HOME/go/bin/darwin_amd64/crx3" +echo "Uploaded crx3 mac package" +torsum=$(sha256sum $HOME/go/bin/windows_amd64/crx3.exe | sed "s|$HOME||g") +echo "$torsum" +github-release upload --user "${GITHUB_USER}" \ + --replace \ + --repo "${GITHUB_REPO}" \ + --tag "build-tools" \ + --label "crx3 for Windows. ${torsum}" \ + --name "crx3.exe" \ + --file "$HOME/go/bin/windows_amd64/crx3.exe" +echo "Uploaded crx3 windows package" +git pull github --tags +git push --all