Switch around crx3 versions

This commit is contained in:
eyedeekay
2024-08-21 00:53:27 -04:00
parent 9f283c4ef5
commit aca1dd618d
2 changed files with 47 additions and 4 deletions

View File

@ -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

43
tools.sh Executable file
View File

@ -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