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 81c6049 commit eb51964
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 @@ -10,7 +10,7 @@ vm_dir_arm=arm-pharo-vm

mkdir -p "$package_dir/image"

ditto $vm_dir/Pharo.app/ $package_dir
ditto $vm_dir $package_dir

cp $ci_build_dir/TravisCI.image $package_dir/image/$PROJECT_NAME.image
cp $ci_build_dir/TravisCI.changes $package_dir/image/$PROJECT_NAME.changes
Expand Down Expand Up @@ -81,7 +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'"

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

# ARM variant
mkdir -p "$vm_dir_arm"
Expand All @@ -91,6 +91,6 @@ wget "https://files.pharo.org/get-files/${PHARO_VERSION}0/pharo-vm-Darwin-arm64-
ditto -xk pharo-vm-Darwin-arm64-stable.zip "$vm_dir_arm"
ditto "$package_dir" "$package_dir_arm"
rm -rf "$package_dir_arm/Pharo.app"
ditto $vm_dir_arm/Pharo.app/ $package_dir_arm
ditto $vm_dir_arm $package_dir_arm

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

0 comments on commit eb51964

Please sign in to comment.