Skip to content

Commit

Permalink
Update build script for macOS/Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster620 committed Jan 11, 2025
1 parent b5f7a2c commit a457cbf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BuildLinuxPackages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ if [ ! -z "$PREV_VERSION" ]; then
fi

# Create output directory
if [[ ! -d "./Packages" ]]; then
echo "Create directory 'Packages'"
mkdir ./Packages
if [ "$?" != "0" ]; then
exit
fi
fi
if [[ ! -d "./Packages/$VERSION" ]]; then
echo "Create directory 'Packages/$VERSION'"
mkdir ./Packages/$VERSION
Expand Down
8 changes: 8 additions & 0 deletions BuildMacOSPackages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ fi
echo "Version: $VERSION"

# Create output directory
if [[ ! -d "./Packages" ]]; then
echo "Create directory 'Packages'"
mkdir ./Packages
if [ "$?" != "0" ]; then
exit
fi
fi
if [[ ! -d "./Packages/$VERSION" ]]; then
echo "Create directory 'Packages/$VERSION'"
mkdir ./Packages/$VERSION
Expand Down Expand Up @@ -89,6 +96,7 @@ for i in "${!RID_LIST[@]}"; do
echo "Signing $FILE_NAME"
codesign -f -o runtime --timestamp --entitlements "./$APP_NAME/$APP_NAME.entitlements" -s "$CERT_NAME" "$FILE_NAME"
if [ "$?" != "0" ]; then
echo "Failed to sign $FILE_NAME"
exit
fi
fi
Expand Down

0 comments on commit a457cbf

Please sign in to comment.