Skip to content

Commit

Permalink
Apple...
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 16, 2023
1 parent ac45902 commit 8d7d50f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/scripts/build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cp $ci_build_dir/*.sources $package_dir/image

cat << EOF > $package_dir/$PROJECT_NAME
#!/bin/bash
xattr -c -d com.apple.quarantine \`dirname "\$0"\`
\`dirname "\$0"\`/Pharo.app/Contents/MacOS/Pharo \`dirname "\$0"\`/image/$PROJECT_NAME.image
EOF

Expand Down Expand Up @@ -80,9 +81,7 @@ cat "ci-scripts/.github/scripts/readmecommon.txt" >> "$package_dir/README.txt"

$vm_dir/Pharo.app/Contents/MacOS/Pharo --headless $package_dir/image/$PROJECT_NAME.image eval --save "OPVersion currentWithRunId: $RUN_ID projectName: '$REPOSITORY_NAME'"

xattr "$package_dir"
ditto -ck --keepParent --rsrc $package_dir $PROJECT_NAME-$PLATFORM-$VERSION.zip
xattr $PROJECT_NAME-$PLATFORM-$VERSION.zip

# ARM variant
mkdir -p "$package_dir_arm"
Expand All @@ -92,7 +91,5 @@ rm -rf "$package_dir_arm/Pharo.app"

wget "https://files.pharo.org/get-files/${PHARO_VERSION}0/pharo-vm-Darwin-arm64-stable.zip"
ditto -xk pharo-vm-Darwin-arm64-stable.zip "$package_dir_arm"
xattr "$package_dir_arm"

ditto -ck --keepParent --rsrc $package_dir_arm $PROJECT_NAME-$PLATFORM-ARM-$VERSION.zip
xattr $PROJECT_NAME-$PLATFORM-ARM-$VERSION.zip

0 comments on commit 8d7d50f

Please sign in to comment.