Wps-object Samples: Difference between revisions
Appearance
Created page with "To create RPM installers for the ArcaOS and OS/2 platform it is interesting to have some samples on how to create some objects in the Worplace Shell. Here are some samples I ..." |
|||
Line 15: | Line 15: | ||
%wps_object_create MYAPP_URL:WPUrl|myapp.example.com|<MYAPP_FOLDER>|URL=http://myapp.example.com | %wps_object_create MYAPP_URL:WPUrl|myapp.example.com|<MYAPP_FOLDER>|URL=http://myapp.example.com | ||
==Creating a WPProgram Object and modifying the "Working | ==Creating a WPProgram Object and modifying the "Working Directory"== | ||
%wps_object_create_begin | %wps_object_create_begin | ||
DIGGERR_EXE:WPProgram|Digger Reloaded|<WP_DESKTOP>|EXENAME=((%{_bindir}/Digger.exe));STARTUPDIR=HOME/.config/((%{name})) | DIGGERR_EXE:WPProgram|Digger Reloaded|<WP_DESKTOP>|EXENAME=((%{_bindir}/Digger.exe));STARTUPDIR=HOME/.config/((%{name})) |
Revision as of 19:14, 28 February 2018
To create RPM installers for the ArcaOS and OS/2 platform it is interesting to have some samples on how to create some objects in the Worplace Shell.
Here are some samples I was able to find and test.
Creating a Folder
%wps_object_create MYAPP_FOLDER:WPFolder|My App %{version}|<WP_DESKTOP>
Creating a WPProgram Object
%wps_object_create MYAPP_EXE:WPProgram|My App|<MYAPP_FOLDER>|EXENAME=((${_bindir}/myapp.exe))
Creating a WPProgram Object for a Readme File
%wps_object_create MYAPP_README:WPProgram|Read Me|<MYAPP_FOLDER>|EXENAME=e.exe;PROGTYPE=PROG_PM;PARAMETERS=(({_%docdir}/%{name}/README));OPEN=RUNNING
Creating a WPUrl Object
%wps_object_create MYAPP_URL:WPUrl|myapp.example.com|<MYAPP_FOLDER>|URL=http://myapp.example.com
Creating a WPProgram Object and modifying the "Working Directory"
%wps_object_create_begin DIGGERR_EXE:WPProgram|Digger Reloaded|<WP_DESKTOP>|EXENAME=((%{_bindir}/Digger.exe));STARTUPDIR=HOME/.config/((%{name})) %wps_object_create_end