]>
code.octet-stream.net Git - hashgood/blob - buildscripts/dist.sh
3 cd "$(git rev-parse --show-toplevel)"
9 source buildscripts
/init.sh
"${PLATFORM}"
11 BASENAME
="${APP}-${TAG}-${PLATFORM}"
15 FILENAME
="${BASENAME}.zip"
16 TARCMD
="/c/Windows/System32/tar.exe -acf ${FILENAME} ${BASENAME}"
19 FILENAME
="${BASENAME}.pkg"
20 TARCMD
="pkgbuild --identifier net.octet-stream.${APP} --install-location /usr/local/bin/ --root ./${BASENAME} ${FILENAME}"
23 FILENAME
="${BASENAME}.tar.xz"
24 TARCMD
="tar -Jcf ${FILENAME} ${BASENAME}"
29 cargo build
--target "${RUST_TARGET}" --release
31 if [[ ${CODESIGNCMD:-"unset"} != "unset" ]]; then
32 "${CODESIGNCMD}" "target/${RUST_TARGET}/release/${APP}"
37 mv "${RUST_TARGET}/release/${APP}" "${BASENAME}"
40 if [[ ${NOTARISECMD:-"unset"} != "unset" ]]; then
41 "${NOTARISECMD}" "target/${FILENAME}"
44 echo "PLATFORM_ARTIFACT|target/${FILENAME}"