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 80a858c commit 13da1b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ 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'"

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

# ARM variant
mkdir -p "$vm_dir_arm"
mkdir -p "$package_dir_arm"

wget "https://files.pharo.org/get-files/${PHARO_VERSION}0/pharo-vm-Darwin-arm64-stable.zip"
ditto -xk pharo-vm-Darwin-arm64-stable.zip "$vm_dir_arm"
cp -r "$package_dir"/* "$package_dir_arm"
ditto "$package_dir"/* "$package_dir_arm"
rm -rf "$package_dir_arm/Pharo.app"
cp -r $vm_dir_arm/Pharo.app/ $package_dir_arm/Pharo.app
ditto $vm_dir_arm/Pharo.app/ $package_dir_arm/Pharo.app

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

0 comments on commit 13da1b3

Please sign in to comment.