From 7c4d7ce5b9408a68ddf7c6122339ee472341cad7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 Jan 2021 18:09:25 +0100 Subject: [PATCH] Seems over-complicated to use SDK-specific subdirectories. --- cscript | 2 +- platform/osx/make_dmg.sh | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/cscript b/cscript index ada4bf7ae..cafbd25cc 100644 --- a/cscript +++ b/cscript @@ -689,7 +689,7 @@ def package(target, version, options): elif target.distro == 'centos' or target.distro == 'fedora' or target.distro == 'mageia': return package_rpm(target, cpu, version, options) elif target.platform == 'osx': - target.command('bash platform/osx/make_dmg.sh %s %s %s %s %s %s' % (target.environment_prefix, target.directory, target.intel_sdk, target.arm_sdk, target.apple_id, target.apple_password)) + target.command('bash platform/osx/make_dmg.sh %s %s %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password)) packages = [] for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg'): a = os.path.abspath(x) diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index be918f0c9..9ba05ac96 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -1,8 +1,8 @@ #!/bin/bash # -SYNTAX="make_dmg.sh " +SYNTAX="make_dmg.sh " # -# e.g. make_dmg.sh /Users/carl/osx-environment /Users/carl/cdist 10.9 11.0 foo@bar.net opensesame +# e.g. make_dmg.sh /Users/carl/osx-environment /Users/carl/cdist foo@bar.net opensesame # Don't set -e here as egrep (used a few times) returns 1 if no matches # were found. @@ -13,10 +13,8 @@ version=`git describe --tags --abbrev=0 | sed -e "s/v//"` DMG_SIZE=256 ENV=$1 ROOT=$2 -INTEL_SDK=$3 -ARM_SDK=$4 -APPLE_ID=$5 -APPLE_PASSWORD=$6 +APPLE_ID=$3 +APPLE_PASSWORD=$4 # This is our work area for making up the .dmgs mkdir -p build/platform/osx @@ -61,7 +59,7 @@ function copy_lib_root { } function copy_lib_env { - for f in $ENV/arm64/$ARM_SDK/lib/$1*.dylib; do + for f in $ENV/arm64/lib/$1*.dylib; do if [ -h $f ]; then ln -s $(readlink $f) "$2/`basename $f`" else @@ -212,7 +210,7 @@ function copy_resources { # i18n: wxWidgets .mo files for lang in de es fr it sv nl ru pl da cs; do mkdir "$dest/$lang" - cp $ENV/x86_64/$INTEL_SDK/share/locale/$lang/LC_MESSAGES/wxstd.mo "$dest/$lang" + cp $ENV/x86_64/share/locale/$lang/LC_MESSAGES/wxstd.mo "$dest/$lang" done } -- 2.30.2