Skip to content

Commit

Permalink
Once more...
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Sep 29, 2023
1 parent 7413c1e commit 0bf1280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ jobs:
VERSION=""
echo ${GITHUB_REF}
echo ${GITHUB_REF#refs/*/}
# [[ "${GITHUB_REF#refs/*/}" != "merge" ]] && VERSION="${GITHUB_REF#refs/*/}" || VERSION=`date -j "+%d-%m-%y"`
VERSION=`date -j "+%d-%m-%y"`
[[ "${GITHUB_REF}" ~= "tags" ]] && VERSION="${GITHUB_REF#refs/*/}" || VERSION=`date -j "+%d-%m-%y"`
# build DMG
brew install create-dmg
VOL="Avogadro2-$VERSION"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,12 @@ jobs:
VERSION=""
echo ${GITHUB_REF}
echo ${GITHUB_REF#refs/*/}
# [[ "${GITHUB_REF#refs/*/}" != "merge" ]] && VERSION="${GITHUB_REF#refs/*/}" || VERSION=`date -j "+%d-%m-%y"`
VERSION=`date -j "+%d-%m-%y"`
[[ "${GITHUB_REF}" ~= "tags" ]] && VERSION="${GITHUB_REF#refs/*/}" || VERSION=`date -j "+%d-%m-%y"`
# build DMG
brew install create-dmg
VOL="Avogadro2-$VERSION"
DMG="Avogadro2-$VERSION.dmg"
echo "VOL: $VOL"
create-dmg --volname ${VOL} --icon-size 64 --icon "Avogadro2.app" 10 50 --app-drop-link 180 50 --hide-extension Avogadro2.app --window-size 300 50 --window-pos 200 200 --format UDBZ ${DMG} prefix/Avogadro2.app
create-dmg --sandbox-safe --volname ${VOL} --icon-size 64 --icon "Avogadro2.app" 10 50 --app-drop-link 180 50 --hide-extension Avogadro2.app --window-size 300 50 --window-pos 200 200 --format UDBZ ${DMG} prefix/Avogadro2.app
# check if we have the password and the username
if [ -n "${NOTARIZE_PASSWORD}" ] && [ -n "${NOTARIZE_USERNAME}" ]; then
codesign -s "$CODESIGN_IDENTITY" --timestamp Avogadro2*.dmg
Expand Down

0 comments on commit 0bf1280

Please sign in to comment.