From 51fda404b8e91189ee0ddbdf6efc8716de18680a Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Sat, 23 Nov 2024 00:54:37 -0800 Subject: [PATCH] package: fix DEB build for rootless Fixes #6667 --- scripts/deb/postinst.m | 2 +- scripts/package.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/deb/postinst.m b/scripts/deb/postinst.m index 454393575..22f51fefd 100644 --- a/scripts/deb/postinst.m +++ b/scripts/deb/postinst.m @@ -6,6 +6,6 @@ -(BOOL)installApplication:(id)arg1 withOptions:(id)arg2; @end int main() { - [[LSApplicationWorkspace defaultWorkspace] installApplication:[NSURL fileURLWithPath:@"/Library/Caches/com.utmapp.UTM/UTM.ipa"] withOptions:[NSDictionary dictionaryWithObject:@"com.utmapp.UTM" forKey:@"CFBundleIdentifier"]]; // This function will remove the ipa file. + [[LSApplicationWorkspace defaultWorkspace] installApplication:[NSURL fileURLWithPath:@"/var/tmp/com.utmapp.UTM/UTM.ipa"] withOptions:[NSDictionary dictionaryWithObject:@"com.utmapp.UTM" forKey:@"CFBundleIdentifier"]]; // This function will remove the ipa file. return 0; } diff --git a/scripts/package.sh b/scripts/package.sh index 6465f9bd0..6fd6378e3 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -131,7 +131,7 @@ create_deb() { local OUTPUT=$2 local FAKEENT=$3 local DEB_TMP="$OUTPUT/deb" - local IPA_PATH="$DEB_TMP/Library/Caches/com.utmapp.UTM" + local IPA_PATH="$DEB_TMP/var/tmp/com.utmapp.UTM" local SIZE_KIB=`du -sk "$INPUT_APP"| cut -f 1` local VERSION=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$INPUT_APP/Info.plist"` @@ -143,7 +143,7 @@ Package: com.utmapp.UTM Version: ${VERSION} Section: Productivity Architecture: all -Depends: firmware (>=14.0), firmware-sbin, net.angelxwind.appsyncunified +Depends: firmware (>=14.0), net.angelxwind.appsyncunified Installed-Size: ${SIZE_KIB} Maintainer: osy Description: Virtual machines for iOS