* pierremtb/adhoc/clean-up-nightly-on-merge
* To revert: test to upload builds at test/nightly
* Remove + suffix trim that's not needed anymore
* Revert "To revert: test to upload builds at test/nightly"
This reverts commit b0549d426f
.
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 (Nightly)" | .name="zoo-modeling-app-nightly"' package.json --indent 2)
|
|
echo "$PACKAGE" > package.json
|
|
|
|
# electron-builder.yml
|
|
yq -i '.publish[0].url = "https://dl.zoo.dev/releases/modeling-app/nightly"' electron-builder.yml
|
|
yq -i '.appId = "dev.zoo.modeling-app-nightly"' electron-builder.yml
|
|
yq -i '.nsis.include = "./scripts/installer-nightly.nsh"' electron-builder.yml
|
|
|
|
# Release notes
|
|
echo "[$TITLE](https://github.com/KittyCAD/modeling-app/commit/$COMMIT)" > release-notes.md
|
|
|
|
# icons
|
|
cp assets/icon-nightly.png assets/icon.png
|
|
cp assets/icon-nightly.ico assets/icon.ico
|