Skip to content

Commit 51fda40

Browse files
committed
package: fix DEB build for rootless
Fixes #6667
1 parent d36ae25 commit 51fda40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/deb/postinst.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ -(BOOL)installApplication:(id)arg1 withOptions:(id)arg2;
66
@end
77

88
int main() {
9-
[[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.
9+
[[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.
1010
return 0;
1111
}

scripts/package.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ create_deb() {
131131
local OUTPUT=$2
132132
local FAKEENT=$3
133133
local DEB_TMP="$OUTPUT/deb"
134-
local IPA_PATH="$DEB_TMP/Library/Caches/com.utmapp.UTM"
134+
local IPA_PATH="$DEB_TMP/var/tmp/com.utmapp.UTM"
135135
local SIZE_KIB=`du -sk "$INPUT_APP"| cut -f 1`
136136
local VERSION=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$INPUT_APP/Info.plist"`
137137

@@ -143,7 +143,7 @@ Package: com.utmapp.UTM
143143
Version: ${VERSION}
144144
Section: Productivity
145145
Architecture: all
146-
Depends: firmware (>=14.0), firmware-sbin, net.angelxwind.appsyncunified
146+
Depends: firmware (>=14.0), net.angelxwind.appsyncunified
147147
Installed-Size: ${SIZE_KIB}
148148
Maintainer: osy <[email protected]>
149149
Description: Virtual machines for iOS

0 commit comments

Comments
 (0)