clrmamepro

Informations

Creator Message
RobLoach

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

A cool little rom manipulation and management engine available from http://mamedev.emulab.it/clrmamepro/ .

Source code

                

Contributions

Filters:

Contribute
Member Message
RobLoach Wednesday 25 November 2015 at 9:42
RobLoach

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,57 @@
+#!/bin/bash
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+# Configuration
+TITLE="clrmamepro"
+WEBSITE="http://mamedev.emulab.it/clrmamepro/"
+DEVELOPER="Roman Scherzer"
+AUTHOR="Rob Loach"
+PREFIX="clrmamepro"
+WINE_VERSION="1.7.55"
+DOWNLOAD="http://mamedev.emulab.it/clrmamepro/binaries/cmp4026_32.exe"
+DOWNLOAD_MD5="d9cb18f9ff88a403c7715b9395ab0282"
+DOWNLOAD_SETUP="cmp4026_32.exe"
+SHORTCUT="cmpro.exe"
+ 
+# Start up PlayOnLinux
+POL_SetupWindow_Init
+POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"
+ 
+# Create the Wine Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+ 
+# Select the installation method
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+  # Select and run the file
+  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
+  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$APP_ANSWER"
+  POL_Wine_WaitExit "$TITLE"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+  # Create a temporary directory
+  POL_System_TmpCreate "$PREFIX"
+  cd "$POL_System_TmpDir"
+ 
+  # Download the program
+  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
+  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+ 
+  # Run the setup
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
+  POL_Wine_WaitExit "$TITLE"
+  POL_System_TmpDelete
+fi
+ 
+# Create the Shortcut to the program
+POL_Shortcut "$SHORTCUT" "$TITLE"
+ 
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Configuration
TITLE="clrmamepro"
WEBSITE="http://mamedev.emulab.it/clrmamepro/"
DEVELOPER="Roman Scherzer"
AUTHOR="Rob Loach"
PREFIX="clrmamepro"
WINE_VERSION="1.7.55"
DOWNLOAD="http://mamedev.emulab.it/clrmamepro/binaries/cmp4026_32.exe"
DOWNLOAD_MD5="d9cb18f9ff88a403c7715b9395ab0282"
DOWNLOAD_SETUP="cmp4026_32.exe"
SHORTCUT="cmpro.exe"
 
# Start up PlayOnLinux
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"
 
# Create the Wine Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINE_VERSION"
 
# Select the installation method
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  # Select and run the file
  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$APP_ANSWER"
  POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
  # Create a temporary directory
  POL_System_TmpCreate "$PREFIX"
  cd "$POL_System_TmpDir"
 
  # Download the program
  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
 
  # Run the setup
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
  POL_Wine_WaitExit "$TITLE"
  POL_System_TmpDelete
fi
 
# Create the Shortcut to the program
POL_Shortcut "$SHORTCUT" "$TITLE"
 
POL_SetupWindow_Close
exit

Replies

Friday 4 December 2015 at 23:59
Hi,
My review:
# Start up PlayOnLinux
POL_SetupWindow_Init

The script is lacking POL_Debug_Init here. You can also add POL_SetupWindow_SetID 2395, that will add an icon in the installation wizard that opens this very web page.

# Select and run the file
POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"

All user oriented messages must support localization http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_10:_Script_Translation

POL_SetupWindow_wait "Installation in progress." "$TITLE installation"

POL_Wine_WaitBefore will immediately replace this message, remove it

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"

"start /unix" is usually not required, and has a known side effect, try to remove it. POL_Wine_WaitBefore and POL_Wine_WaitExit should not be both required at the same time around a single POL_Wine, use one or the other depending on whether POL_Wine call is synchronous or asynchronous. (See discussion about POL_Wine in the Wiki http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions#POL_Wine_.284.0.2B.29)

POL_SetupWindow_wait "Installation in progress." "$TITLE installation"

(same comments for the "DOWNLOAD" case)
RobLoach Saturday 10 January 2015 at 22:55
RobLoach

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,57 @@
+#!/bin/bash
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+# Configuration
+TITLE="clrmamepro"
+WEBSITE="http://mamedev.emulab.it/clrmamepro/"
+DEVELOPER="Roman Scherzer"
+AUTHOR="Rob Loach"
+PREFIX="clrmamepro"
+WINE_VERSION="1.7.33"
+DOWNLOAD="http://mamedev.emulab.it/clrmamepro/binaries/cmp4016_32.exe"
+DOWNLOAD_MD5="a3b9465f16eef13f76eeabb0ab846b79"
+DOWNLOAD_SETUP="cmp4016_32.exe"
+SHORTCUT="cmpro.exe"
+
+# Start up PlayOnLinux
+POL_SetupWindow_Init
+POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"
+
+# Create the Wine Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+
+# Select the installation method
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+  # Select and run the file
+  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
+  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$APP_ANSWER"
+  POL_Wine_WaitExit "$TITLE"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+  # Create a temporary directory
+  POL_System_TmpCreate "$PREFIX"
+  cd "$POL_System_TmpDir"
+
+  # Download the program
+  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
+  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+
+  # Run the setup
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
+  POL_Wine_WaitExit "$TITLE"
+  POL_System_TmpDelete
+fi
+
+# Create the Shortcut to the program
+POL_Shortcut "$SHORTCUT" "$TITLE"
+
+POL_SetupWindow_Close
+exit

New source code

#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

# Configuration
TITLE="clrmamepro"
WEBSITE="http://mamedev.emulab.it/clrmamepro/"
DEVELOPER="Roman Scherzer"
AUTHOR="Rob Loach"
PREFIX="clrmamepro"
WINE_VERSION="1.7.33"
DOWNLOAD="http://mamedev.emulab.it/clrmamepro/binaries/cmp4016_32.exe"
DOWNLOAD_MD5="a3b9465f16eef13f76eeabb0ab846b79"
DOWNLOAD_SETUP="cmp4016_32.exe"
SHORTCUT="cmpro.exe"

# Start up PlayOnLinux
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"

# Create the Wine Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Select the installation method
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  # Select and run the file
  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$APP_ANSWER"
  POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
  # Create a temporary directory
  POL_System_TmpCreate "$PREFIX"
  cd "$POL_System_TmpDir"

  # Download the program
  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"

  # Run the setup
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
  POL_Wine_WaitExit "$TITLE"
  POL_System_TmpDelete
fi

# Create the Shortcut to the program
POL_Shortcut "$SHORTCUT" "$TITLE"

POL_SetupWindow_Close
exit

Replies