* Rename nightly to staging and have it point to dev infra
Fixes #7421
* To revert: force IS_STAGING
* chmod +x ./scripts/flip-files-to-staging.sh
* Fix mix up dev and prod
* Revert "To revert: force IS_STAGING"
This reverts commit 0178604a55
.
21 lines
730 B
Bash
Executable File
21 lines
730 B
Bash
Executable File
#!/bin/bash
|
|
|
|
COMMIT=$(git rev-parse --short HEAD)
|
|
TITLE=$(git show -s --format=%s $COMMIT)
|
|
|
|
# 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 "[$TITLE](https://github.com/KittyCAD/modeling-app/commit/$COMMIT)" > release-notes.md
|
|
|
|
# icons
|
|
cp assets/icon-staging.png assets/icon.png
|
|
cp assets/icon-staging.ico assets/icon.ico
|