You need Platypus to open the .platypus
-app file. Notice the Script path and Bundled files. main.scpt
is Applescript and is used for the logic. This scipt calls on several shell commands as well as installRicoh.sh
. The last file is mostly settings for the printer.
com.apple.print.custompresets.forprinter.NTNURicoh.plist
is a Preset file that contains presets for the printer. You can edit settings and copy the file from ~/Library/Preferences
.
testprint.pdf
is the printed PDF.
RicohPrinterDrivers.pkg
is installed silently with administrator permissions.
Export the app to ./app/NTNU Print.app
when you are testing.
brew install create-dmg
Install Platypus command line tool: go to Platypus>Preferences...> Install`.
Run ./createDMG.sh
. This will bundle the scripts and resources together.
Use codesign --deep --force --verbose --sign "SIGNING KEY" "./Utskrift NTNU.dmg"
, where SIGNING KEY
is the token for "Developer ID Application: Norges Tekn...". (see security find-identity -v
and Apple docs).
You need Sketch to edit the icons (NTNU logo and printer logo) and the background as well. In Sketch, Edit->Export... and only export the "Icon.png".