Skip to content

Instantly share code, notes, and snippets.

@arubdesu
Last active September 4, 2021 18:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arubdesu/10024912 to your computer and use it in GitHub Desktop.
Save arubdesu/10024912 to your computer and use it in GitHub Desktop.
Luggage makefile-generated pkg to drop dummy receipts in place which stop prompt to update/adopt Mac AppStore apps (in this case for iLife without Garageband)(may also need to wipe /var/db/.MASManifest, as per @jessepeterson)
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=iWorkDummyReceipts
REVERSE_DOMAIN=org.my.iWorkDummyReceipts
PACKAGE_VERSION=0.1
PAYLOAD=pack-iWorkDummyReceipts
pack-iWorkDummyReceipts: l_Applications
@sudo mkdir -p -m 755 ${WORK_D}/Applications/{Numbers,Pages,Keynote}.app/Contents/_MASReceipt
@sudo touch ${WORK_D}/Applications/{Numbers,Pages,Keynote}.app/Contents/_MASReceipt/receipt
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=iLifeDummyReceipts
REVERSE_DOMAIN=org.my.iLifeDummyReceipts
PACKAGE_VERSION=0.1
PAYLOAD=pack-iLifeDummyReceipts
pack-iLifeDummyReceipts: l_Applications
@sudo mkdir -p -m 755 ${WORK_D}/Applications/{iPhoto,iMovie,GarageBand}.app/Contents/_MASReceipt
@sudo touch ${WORK_D}/Applications/{iPhoto,iMovie,GarageBand}.app/Contents/_MASReceipt/receipt
@ertik
Copy link

ertik commented Apr 12, 2016

After execute makefile on OSX 11.11.5
line 2: include: command not found
/Users/ert/Downloads/10024912-7780b13bc82fcb09ae44306dd8fe3a08758f1e0e/makefile: line 8: pack-iLifeDummyReceipts:: command not found
/Users/ert/Downloads/10024912-7780b13bc82fcb09ae44306dd8fe3a08758f1e0e/makefile: line 9: @sudo: command not found
/Users/ert/Downloads/10024912-7780b13bc82fcb09ae44306dd8fe3a08758f1e0e/makefile: line 10: @sudo: command not found

after delete @ in gistfile1.txt no change…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment