2023-09-03 21:09:16 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
if [ -z "${1}" ]
|
|
|
|
then
|
|
|
|
echo "Usage: ${0} RELEASE_VERSION"
|
2023-09-03 21:11:24 +00:00
|
|
|
exit 1
|
2023-09-03 21:09:16 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
RELEASE_VERSION="${1}"
|
|
|
|
RELEASE_PATH="${HOME}/fchat-rising-dist/${RELEASE_VERSION}"
|
|
|
|
DIST_PATH="${HOME}/fchat-rising/electron/dist/downloaded"
|
|
|
|
|
|
|
|
cd "${HOME}/fchat-rising"
|
|
|
|
git checkout master
|
|
|
|
git pull
|
|
|
|
yarn
|
|
|
|
|
|
|
|
mkdir -p "${RELEASE_PATH}"
|
|
|
|
rm -rf "${DIST_PATH}"
|
|
|
|
|
|
|
|
cd electron
|
|
|
|
yarn build:dist
|
|
|
|
node pack.js
|
|
|
|
|
2023-09-03 21:33:27 +00:00
|
|
|
cp "${DIST_PATH}/fchat.arm64.AppImage" "${RELEASE_PATH}/F-Chat-Rising-linux-arm64.AppImage"
|
|
|
|
cp "${DIST_PATH}/fchat.arm64.AppImage.zsync" "${RELEASE_PATH}/F-Chat-Rising-linux-arm64.AppImage.zsync"
|
2023-09-03 21:09:16 +00:00
|
|
|
|
2023-09-03 21:33:27 +00:00
|
|
|
cp "${DIST_PATH}/fchat.x64.AppImage" "${RELEASE_PATH}/F-Chat-Rising-linux-x64.AppImage"
|
|
|
|
cp "${DIST_PATH}/fchat.x64.AppImage.zsync" "${RELEASE_PATH}/F-Chat-Rising-linux-x64.AppImage.zsync"
|