repository for casatablebrowser
Source
xxxxxxxxxx
if ( ! -d $app_path ) { die "app directory ('$app_path') 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;
} else {
if ( ! -f $app_path ) { die "app image does not exist" }
$app_exe = "__bin__/$app_name";
$subst{'@APP@'} = $app_exe;
}
rsync("src/module", $prefix);
rsync("src/casatablebrowser", $prefix);
subst($prefix);
if ( ! -d "$prefix/private" ) { mkpath("$prefix/private") }
mkpath("$prefix/__bin__");
rsync( $app_path, "$prefix/__bin__/$app_name" );
rsync("src/setup.py","$prefix/..");
chdir("$prefix/..");
if ( $build_number ) {
exec ( './setup.py', 'bdist_wheel', "--build=$build_number" ) or die "could not build wheel: $!";