Jump to content

Wps-object Samples: Difference between revisions

From EDM2
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
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 Workplace Shell.


Here are some samples I was able to find and test.
Here are some samples I was able to find and test.
Line 21: Line 21:
==Creating a WPProgram Object and setting the "Working Directory"==
==Creating a WPProgram Object and setting the "Working Directory"==
  %wps_object_create_begin
  %wps_object_create_begin
  DIGGERR_EXE:WPProgram|Digger Reloaded|<WP_DESKTOP>|EXENAME=((%{_bindir}/Digger.exe));\
  DIGGERR_EXE:WPProgram|Digger Reloaded|<WP_DESKTOP>|EXENAME=((%{_bindir}/Digger.exe));STARTUPDIR=HOME/.config/((%{name}))
STARTUPDIR=HOME/.config/((%{name}))
  %wps_object_create_end
  %wps_object_create_end


==Links==
==Links==
* [http://svn.netlabs.org/repos/rpm/spec/trunk/SPECS/os2-rpm/macros.os2 wps-object Macro.os2]
* [http://svn.netlabs.org/repos/rpm/spec/trunk/SPECS/os2-rpm/macros.os2 wps-object Macro.os2]
* [http://trac.netlabs.org/rpm/browser/spec/trunk/SPECS/os2-rpm/macros.wps macros.wps]
* [https://www.gnu.org/prep/standards/html_node/Directory-Variables.html 7.2.5 Variables for Installation Directories]
* [https://www.gnu.org/prep/standards/html_node/Directory-Variables.html 7.2.5 Variables for Installation Directories]


[[Category:Samples]]
[[Category:Workplace Shell]]

Latest revision as of 17:12, 5 July 2021

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 Workplace Shell.

Here are some samples I was able to find and test.

Creating a Folder

This created the "MYAPP_FOLDER" object in the desktop. The folder will be labeled "My App x.xx".

%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 setting 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

Links