There should be file image.icns in current working directory once you will finish. Sips -z 1024 1024 "image.png" -out bundle iconset into icns file Sips -z 16 16 "image.png" -out "image.iconset/icon_16x16.png" # create icons inside iconset based on source image This image should be a high resolution icon, for example, 1024×1024 is the best. Convert existing png icon to icns iconįor example, you have image.png in current working directory. This won’t work for non-icns icons, you will need to convert them to icns before. You could copy any icns icon to ~/Applications/My App.app/Contents/Resources/My App.icns.įor example, default application icon: cp -fv /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns ~/"Applications/My App.app/Contents/Resources/My App.icns" Create an icon (optional) Use existing icns icon It is required to properly copy directory tree. Please note, there is a / in the end of ~/.wine/. You just need to copy whole prefix into application bundle.Įxample: rsync -a ~/.wine/ ~/"Applications/My App.app/Contents/Resources/wine-prefix" -exclude "dosdevices" You must have already preconfigured prefix with installed application, tweaked registry and with winetricks fixes applied. Just download any portable-winehq-*.tar.gz and unpack it to My App.app/Contents/Resources/wine-homeįinal wine-home folder should have just one subfolder usr. Portable Wine versions could be downloaded here: If it is just one application then you don’t need a prompt and you could set application path in launcher script. values – application paths in windows notation, replace all \ with \\Īs mention before, this script is needed if you would like to prompt for application to launch.names – array of application names, count must match with count of values.title – chooser title, change if you need.Set selectedValue to item (getPositionOfItemInList((selectedName as string), names)) of values Set selectedName to choose from list names with prompt title default items defaultName You could manually create directory “Applications” in your home directory and create wine bundle in this directory.Ĭreate a directory for all user-space applications: mkdir -p ~/ApplicationsĬreate an application directory structure: cd ~/Applications Please note, we are assuming that application will write to it is own directory in wine prefix, so application bundle should be install in user space “Applications” directory. This proposed directory structure is not the only possible way, but it could be a good starting point for your customer bundle. “My App” is an example application name, could be anything. You could create application bundle manually from command line. It will also give you an easy way to double click and run and there will be a nice icon to distinguish wine app from other application Plan
0 Comments
Leave a Reply. |