From d672ec05e947b7aed94ea71963bde862e22230d8 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sun, 12 Feb 2023 22:33:40 +0100 Subject: [PATCH] Fix artifact names --- .github/workflows/build.yml | 4 ++-- setup/macos/build.sh | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88b16ebc..69179670 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,12 +64,12 @@ jobs: uses: actions/upload-artifact@v3 with: name: novelWriter-${{ env.VERSION }}-macos.app.zip - path: dist_macos/novelWriter-${{ env.VERSION }}.app.zip + path: dist_macos/novelWriter-${{ env.VERSION }}-macos.app.zip retention-days: 1 - name: Upload DMG uses: actions/upload-artifact@v3 with: name: novelWriter-${{ env.VERSION }}-macos.dmg - path: dist_macos/novelWriter-${{ env.VERSION }}.dmg + path: dist_macos/novelWriter-${{ env.VERSION }}-macos.dmg retention-days: 1 diff --git a/setup/macos/build.sh b/setup/macos/build.sh index ae7ff30f..af92b5f5 100755 --- a/setup/macos/build.sh +++ b/setup/macos/build.sh @@ -38,7 +38,6 @@ else echo "Missing: setup/macos/Info.plist" exit 1 fi -echo "" # Check that other assets are present echo "Checking assets" @@ -60,11 +59,9 @@ else echo "Missing: novelwriter/assets/i18n/nw_en_US.qm" exit 1 fi -echo "" echo "Content of current dir:" ls -lah . -echo "" popd || exit 1 pushd "$BUILD_DIR"/ || exit 1 @@ -77,17 +74,14 @@ curl -LO https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh bash Miniconda3-latest-MacOSX-x86_64.sh -b -p ~/miniconda -f rm Miniconda3-latest-MacOSX-x86_64.sh export PATH="$HOME/miniconda/bin:$PATH" -echo "" echo "Creating conda env ..." # create conda env conda create -n novelWriter -c conda-forge python=3.10 --yes source activate novelWriter -echo "" echo "installing dictionaries ..." conda install -c conda-forge enchant hunspell-en --yes -echo "" # Install dependencies echo "installing python dependencies ..." @@ -95,7 +89,6 @@ pip install -r "$SRC_DIR/requirements.txt" # Leave conda env conda deactivate -echo "" # --- Build App --------------------------------------------------------------------------------- # @@ -104,7 +97,6 @@ echo "Building app bundle ..." mkdir -p novelWriter.app/Contents/ mkdir novelWriter.app/Contents/MacOS novelWriter.app/Contents/Resources novelWriter.app/Contents/Resources/novelWriter cp $SRC_DIR/setup/macos/Info.plist novelWriter.app/Contents/Info.plist -echo "" echo "Copying miniconda env to bundle ..." cp -R ~/miniconda/envs/novelWriter/* novelWriter.app/Contents/Resources/ @@ -122,7 +114,6 @@ for file in "${FILES_COPY[@]}"; do done cp $SRC_DIR/setup/macos/novelwriter.icns novelWriter.app/Contents/Resources/ -echo "" # Create entry script echo "Creating entry script ..." @@ -134,7 +125,6 @@ EOF # Make it executable chmod a+x novelWriter.app/Contents/MacOS/novelWriter -echo "" # Do codesigning # echo "Signing bundle ..." @@ -167,7 +157,6 @@ rm lib/python3.*/site-packages/PyQt5/Qt/lib/libQt5WebEngine* || true popd || exit 1 popd || exit 1 -echo "" # --- Create App Bundle-------------------------------------------------------------------------- # @@ -179,7 +168,6 @@ zip -qr novelWriter.app.zip novelWriter.app popd || exit 1 mv -v $BUILD_DIR/novelWriter.app.zip $RLS_DIR/novelWriter-"${VERSION}"-macos.app.zip -echo "" # --- Create DMG -------------------------------------------------------------------------------- #