Add installer to release workflow
This commit is contained in:
parent
cbc8c1aed6
commit
2bc6da038d
6
.github/workflows/trigger_release.yml
vendored
6
.github/workflows/trigger_release.yml
vendored
@ -43,10 +43,12 @@ jobs:
|
|||||||
for d in PolyMC-Windows-*; do
|
for d in PolyMC-Windows-*; do
|
||||||
cd "${d}" || continue
|
cd "${d}" || continue
|
||||||
ARCH="$(echo -n ${d} | cut -d '-' -f 3)"
|
ARCH="$(echo -n ${d} | cut -d '-' -f 3)"
|
||||||
|
INST="$(echo -n ${d} | grep -o Setup || true)"
|
||||||
PORT="$(echo -n ${d} | grep -o Portable || true)"
|
PORT="$(echo -n ${d} | grep -o Portable || true)"
|
||||||
NAME="PolyMC-Windows-${ARCH}"
|
NAME="PolyMC-Windows-${ARCH}"
|
||||||
test -z "${PORT}" || NAME="${NAME}-Portable"
|
test -z "${PORT}" || NAME="${NAME}-Portable"
|
||||||
zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" *
|
test -z "${INST}" || mv PolyMC-*.exe ../${NAME}-Setup-${{ env.VERSION }}.exe
|
||||||
|
test -n "${INST}" || zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" *
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -66,7 +68,9 @@ jobs:
|
|||||||
PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage
|
||||||
PolyMC-Windows-i686-${{ env.VERSION }}.zip
|
PolyMC-Windows-i686-${{ env.VERSION }}.zip
|
||||||
PolyMC-Windows-i686-Portable-${{ env.VERSION }}.zip
|
PolyMC-Windows-i686-Portable-${{ env.VERSION }}.zip
|
||||||
|
PolyMC-Windows-i686-Setup-${{ env.VERSION }}.exe
|
||||||
PolyMC-Windows-x86_64-${{ env.VERSION }}.zip
|
PolyMC-Windows-x86_64-${{ env.VERSION }}.zip
|
||||||
PolyMC-Windows-x86_64-Portable-${{ env.VERSION }}.zip
|
PolyMC-Windows-x86_64-Portable-${{ env.VERSION }}.zip
|
||||||
|
PolyMC-Windows-x86_64-Setup-${{ env.VERSION }}.exe
|
||||||
PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
PolyMC-macOS-${{ env.VERSION }}.tar.gz
|
||||||
PolyMC-${{ env.VERSION }}.tar.gz
|
PolyMC-${{ env.VERSION }}.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user