repository for casafeather app
Source
64
64
if ( ! -d $prefix) { die "cannot create prefix" }
65
65
if ( ! $app_path ) { die "no prefix specified" };
66
66
67
67
$app_name = basename($app_path);
68
68
69
69
if ( $^O eq "darwin" ) {
70
70
if ( ! -d $app_path ) { die "app directory does not exist (or is not a directory)" }
71
71
my( $filename, $dirs, $suffix ) = fileparse( $app_path, ".app" );
72
72
$app_exe = "__bin__/$app_name/Contents/MacOS/$filename";
73
73
$subst{'@APP@'} = $app_exe;
74
+
75
+
# Apple Silicon Macs use Qt5, which requires that qt.conf is present
76
+
$cpuarch=`uname -m`;
77
+
chomp($cpuarch);
78
+
print ("CPU Architecture: '$cpuarch'\n");
79
+
if ($cpuarch eq "arm64") {
80
+
open my $fileHandle, ">>", "$app_path/Contents/Resources/qt.conf" or die "Can't open '$app_path/Contents/Resources/qt.conf'\n";
81
+
close $fileHandle;
82
+
}
83
+
74
84
} else {
75
85
if ( ! -f $app_path ) { die "app image does not exist" }
76
86
$app_exe = "__bin__/$app_name";
77
87
$subst{'@APP@'} = $app_exe;
78
88
}
79
89
80
90
rsync("src/casafeather", $prefix);
81
91
subst($prefix);
82
92
if ( ! -d "$prefix/private" ) { mkpath("$prefix/private") }
83
93