Skip to content

Commit

Permalink
Merge branch 'dev' into feature/cmd-line
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jan 12, 2024
2 parents 2953d06 + dc0724d commit 3ff6afa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 41 deletions.
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function prepare_image() {
esac
wget --quiet -O - get.pharo.org/$ARCH_PATH$PHARO | bash
wget --quiet -O - get.pharo.org/$ARCH_PATH$VM$PHARO | bash
echo $PHARO > 'pharo.version'
echo "$PHARO" > 'pharo.version'

./pharo Pharo.image save PharoLauncher --delete-old
./pharo PharoLauncher.image --version > version.txt
Expand Down Expand Up @@ -104,7 +104,8 @@ function package_mac_version() {
cp scripts/pharo-launcher.sh $BIN_PATH/pharo-launcher && chmod +x $BIN_PATH/pharo-launcher

VERSION=$VERSION_NUMBER APP_NAME=PharoLauncher SHOULD_SIGN=false ./mac/build-dmg.sh
local generated_dmg=$(echo *.dmg)
local generated_dmg
generated_dmg=$(echo *.dmg)
mv "$generated_dmg" "PharoLauncher-$VERSION_NUMBER.dmg"
generated_dmg=$(echo *.dmg)
md5 "$generated_dmg" > "$generated_dmg.md5sum"
Expand All @@ -130,7 +131,7 @@ function copy_current_stable_image_to() {
local DEST_PATH=${1:-.} # If no argument given, use current working dir
local IMAGES_PATH=$DEST_PATH/images
mkdir "$IMAGES_PATH"
wget --progress=dot:mega -P $IMAGES_PATH https://files.pharo.org/image/stable/stable-64.zip
wget --progress=dot:mega -P "$IMAGES_PATH" https://files.pharo.org/image/stable/stable-64.zip
mv "$IMAGES_PATH/stable-64.zip" "$IMAGES_PATH/pharo-stable.zip"
}

Expand Down Expand Up @@ -224,7 +225,7 @@ linux-package)
package_linux_version
;;
mac-package)
package_mac_version $SHOULD_SIGN
package_mac_version "$SHOULD_SIGN"
;;
*)
echo "No valid target specified! Exiting"
Expand Down
4 changes: 2 additions & 2 deletions linux/pharo-launcher-ui
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

# path
DIR=`readlink -f $0` #resolve symlink
ROOT=`dirname "$DIR"` #obtain dir of the resolved path
DIR=$(readlink -f "$0") #resolve symlink
ROOT=$(dirname "$DIR") #obtain dir of the resolved path
LINUX="$ROOT/pharo-vm"
RESOURCES="$ROOT/shared"
ICONS="$ROOT/icons"
Expand Down
6 changes: 3 additions & 3 deletions mac/build-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ readonly DMG_FINAL="${VOL_NAME/ /_}.dmg" # final DMG name will be "Super
readonly STAGING_DIR="./Install" # we copy all our stuff into this dir

check_background_image_DPI_and_convert_it_if_not_72_by_72() {
local _BACKGROUND_IMAGE_DPI_H=`sips -g dpiHeight ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+'`
local _BACKGROUND_IMAGE_DPI_W=`sips -g dpiWidth ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+'`
local _BACKGROUND_IMAGE_DPI_H=$(sips -g dpiHeight ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+')
local _BACKGROUND_IMAGE_DPI_W=$(sips -g dpiWidth ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+')

if [ $(echo " $_BACKGROUND_IMAGE_DPI_H != 72.0 " | bc) -eq 1 -o $(echo " $_BACKGROUND_IMAGE_DPI_W != 72.0 " | bc) -eq 1 ]; then
echo "WARNING: The background image's DPI is not 72. This will result in distorted backgrounds on Mac OS X 10.7+."
Expand Down Expand Up @@ -102,7 +102,7 @@ function sign_mac_app() {
# See https://code-examples.net/en/q/1344e6a
security set-key-partition-list -S apple-tool:,apple: -s -k ${keychain_password} "${keychain_name}"
# debug
echo ${sign_identity} >> "id.txt"
echo "${sign_identity}" >> "id.txt"
# Invoke codesign
if [[ -d "${app_dir}/Contents/MacOS/Plugins" ]]; then # Pharo.app does not (yet) have its plugins in Resources dir
rm -rf "${app_dir}/Contents/MacOS/Plugins/pkgconfig" # Should be fixed in VM build
Expand Down
34 changes: 2 additions & 32 deletions sources.list
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,9 @@ OrderedCollection [
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 11 (development) - Pharo 11',
#name : 'Moose Suite 11 (development)',
#url : 'https://github.com/moosetechnology/Moose/releases/download/continuous/Moose11-development-Pharo64-11.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 11 (development) - Pharo 10',
#url : 'https://github.com/moosetechnology/Moose/releases/download/continuous/Moose11-development-Pharo64-10.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 10 (stable)',
Expand Down Expand Up @@ -139,32 +134,7 @@ OrderedCollection [
#type : #URL,
#name : 'Moose Suite 8.0 (old stable)',
#url : 'https://github.com/moosetechnology/Moose/releases/download/v8.x.x/Moose8-old-stable-Pharo64-8.0.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 7.0 (old stable)',
#url : 'https://ci.inria.fr/moose/job/moose-7.0-64bit/lastSuccessfulBuild/artifact/moose-7.0-64bit.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 6.1',
#url : 'https://ci.inria.fr/moose/job/moose-6.1/lastSuccessfulBuild/artifact/moose-6.1.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 6.0',
#url : 'https://ci.inria.fr/moose/job/moose-6.0/lastSuccessfulBuild/artifact/moose-6.0.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 5.1',
#url : 'https://ci.inria.fr/moose/job/moose-5.1/lastSuccessfulBuild/artifact/moose-5.1.zip'
},
PhLTemplateSource {
#type : #URL,
#name : 'Moose Suite 5.0',
#url : 'https://moosetechnology.org/res/download/moose_image_5_0.zip'
}
}
]
},
PhLTemplateSource {
Expand Down

0 comments on commit 3ff6afa

Please sign in to comment.