Skip to content

Commit

Permalink
Small build script correction
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro committed Nov 27, 2024
1 parent 366e3f6 commit 07dfe96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions jpackage/run_jpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ case "${unameOut}" in
Darwin*) machine=mac;;
CYGWIN*) machine=win;;
MINGW*) machine=win;;
MSYS_NT*) machine=win;;
*) machine="UNKNOWN:${unameOut}"
esac
echo Machine type detected ${machine}
Expand Down Expand Up @@ -134,6 +135,7 @@ if [ "${machine}" = "win" ]; then
else
SIGNTOOL=$(which signtool)
fi
echo Using SIGNTOOL=$SIGNTOOL

if [ -z "$CERTUM_SHA" ]; then
if [ ! -f "$SIGNTOOL_PFX" ]; then
Expand All @@ -144,6 +146,8 @@ if [ "${machine}" = "win" ]; then
echo "SIGNTOOL_CERT not set"
fi
fi
else
echo "Using CERTUM_SHA=$CERTUM_SHA"
fi

ls -lah jpackage/cert
Expand Down
6 changes: 3 additions & 3 deletions upload-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ UPLOAD_FILES=("target/packages/Pdf Metadata Editor-${PUBLISH_VERSION}.msi")
for f in "${UPLOAD_FILES[@]}"; do
extension="${f##*.}"
target="pmc/pdf-metadata-editor/release-files/$PUBLISH_VERSION/release.${extension}"
if mc stat $target > /dev/null ; then
if mc stat -q $target > /dev/null ; then
echo $target already exists, skipping
else
echo Uploading $f as $target
mc cp "$f"
mc cp "$f" "$target"
fi
done
done

0 comments on commit 07dfe96

Please sign in to comment.