Skip to content

Commit

Permalink
package: fix DEB build for rootless
Browse files Browse the repository at this point in the history
Fixes #6667
  • Loading branch information
osy committed Nov 23, 2024
1 parent d36ae25 commit 51fda40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/deb/postinst.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 2 additions & 2 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand All @@ -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 <dev@getutm.app>
Description: Virtual machines for iOS
Expand Down

0 comments on commit 51fda40

Please sign in to comment.