Skip to content

kunmagg/printscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Edit app

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.

Requirements

brew install create-dmg

Install Platypus command line tool: go to Platypus>Preferences...> Install`.

Update DMG

Run ./createDMG.sh. This will bundle the scripts and resources together.

Signing

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).

Update icons

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".

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%