casalogger package for CASA 6
Source
xxxxxxxxxx
if ( ! -d $app_path ) { die "app directory does not exist (or is not a directory)" }
my( $filename, $dirs, $suffix ) = fileparse( $app_path, ".app" );
$app_exe = "__bin__/$app_name/Contents/MacOS/$filename";
$subst{'@APP@'} = $app_exe;
# Apple Silicon Macs use Qt5, which requires that qt.conf is present
$cpuarch=`uname -m`;
chomp($cpuarch);
print ("CPU Architecture: '$cpuarch'\n");
if ($cpuarch eq "arm64") {
open my $fileHandle, ">>", "$app_path/__bin__/$app_name/Contents/Resources/qt.conf" or die "Can't open '$app_path/__bin__/$app_name/Contents/Resources/qt.conf'\n";
open my $fileHandle, ">>", "$app_path/Contents/Resources/qt.conf" or die "Can't open '$app_path/Contents/Resources/qt.conf'\n";
close $fileHandle;
}
} else {
if ( ! -f $app_path ) { die "app image does not exist" }
$app_exe = "__bin__/$app_name";
$subst{'@APP@'} = $app_exe;
}
rsync("src/casalogger", $prefix);