20 lines
661 B
Bash
Executable File
20 lines
661 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export COMMIT=$(git rev-parse --short HEAD)
|
|
|
|
# package.json
|
|
PACKAGE=$(jq '.productName="Zoo Design Studio (Staging)" | .name="zoo-modeling-app-staging"' package.json --indent 2)
|
|
echo "$PACKAGE" > package.json
|
|
|
|
# electron-builder.yml
|
|
yq -i '.publish[0].url = "https://dl.zoo.dev/releases/modeling-app/staging"' electron-builder.yml
|
|
yq -i '.appId = "dev.zoo.modeling-app-staging"' electron-builder.yml
|
|
yq -i '.nsis.include = "./scripts/installer-staging.nsh"' electron-builder.yml
|
|
|
|
# Release notes
|
|
echo "Staging build (commit $COMMIT)" > release-notes.md
|
|
|
|
# icons
|
|
cp assets/icon-staging.png assets/icon.png
|
|
cp assets/icon-staging.ico assets/icon.ico
|