Skip to content

Commit

Permalink
copy cli launcher script in app
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Aug 25, 2023
1 parent 0a09aac commit b5c6a01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -ex
# $ARCHITECTURE : targeted architecture 32 or 64 bits. Default will be 32.

# Script parameters
# $1: the target to run between prepare | test | user
# $1: the target to run

function prepare_image() {
case "$ARCHITECTURE" in
Expand Down Expand Up @@ -66,16 +66,17 @@ function package_linux_version() {
RESOURCES_PATH=$OUTPUT_PATH/shared
rm -f $OUTPUT_PATH; mkdir $OUTPUT_PATH
mkdir $OUTPUT_PATH/icons; cp icons/pharo-launcher.png $OUTPUT_PATH/
cp linux/pharo-launcher $OUTPUT_PATH/
cp linux/pharo-launcher-ui $OUTPUT_PATH/
cp scripts/pharo-launcher.sh $OUTPUT_PATH/pharo-launcher
mkdir $RESOURCES_PATH
copy_current_stable_image_to $RESOURCES_PATH
expand_all_templates $OUTPUT_PATH
cp PharoLauncher.image $RESOURCES_PATH
cp PharoLauncher.changes $RESOURCES_PATH
cp Pharo*.sources $RESOURCES_PATH
fetch_current_vm_to $(pwd)/$RESOURCES_PATH
# ensure the linux script is executable
chmod +x "$OUTPUT_PATH/pharo-launcher" || true
# ensure the linux scripts are executable
chmod +x "$OUTPUT_PATH/pharo-launcher" "$OUTPUT_PATH/pharo-launcher-ui" || true
}

function copy_mac_icon_files_to() {
Expand All @@ -100,6 +101,7 @@ function package_mac_version() {
copy_mac_icon_files_to $RESOURCES_PATH/
mv mac-installer-background.png background.png
fetch_current_mac_vm_to $(pwd)/$OUTPUT_PATH
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)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/PharoLauncherCommonFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ prepareLauncherScriptAndImage () {
# ensure that launcher script and image are in needed directories for test evaluation (before packaging)
pushd .. > /dev/null
if [ ! -f "$PHL_SCRIPT" ] ; then
cp ./script/pharo-launcher.sh $PHL_SCRIPT
cp ./scripts/pharo-launcher.sh $PHL_SCRIPT
fi
detectPharoLauncherImagePath
if [ ! -f "$IMAGE" ] ; then
Expand Down

0 comments on commit b5c6a01

Please sign in to comment.