Skip to content

Instantly share code, notes, and snippets.

@rweichler
Created February 21, 2017 04:31
Show Gist options
  • Save rweichler/5e23a5a98aa905475a21d574a85f0a08 to your computer and use it in GitHub Desktop.
Save rweichler/5e23a5a98aa905475a21d574a85f0a08 to your computer and use it in GitHub Desktop.
#!/bin/bash
myAppPath=$(dirname "$0")
exec "$myAppPath"/dpkg.exe_ "$@"
#!/bin/sh
# set permissions of app
chown root:wheel /Applications/dpkg.app/dpkg.exe_
chmod 6755 /Applications/dpkg.app/dpkg.exe_
# set permissions of script
chown root:wheel /Applications/dpkg.app/dpkg.exe
chmod 755 /Applications/dpkg.app/dpkg.exe
@rweichler
Copy link
Author

u basically have to compile it as dpkg.exe_

then make the Info.plist open dpkg.exe (bash script)

which then opens the real dpkg.exe_

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