PatternMaker 7.5
Informations
Creator | Message |
---|---|
gap
|
WarningThis installer is a beta script. It means that it might not work as expected InformationsPlatforms: Feedbacks0 0 DescriptionA CAD program for Clothing Design. Source code# Create the setup window POL_SetupWindow_Init # Required POL_Debug_Init # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) # Removed warnings since all versions of OSX use Bash < 4 if [ ${BASH_VERSINFO[0]} -lt 4 ]; then # POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" # POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else declare -a PATTERNS_CHOSEN declare -A PATTERN_URLS declare -A PATTERN_DIGESTS PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" ) PATTERN_DIGESTS=( [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Men]="4c63bec7897419aee20541f05695333e" ) function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" PATTERNS_CHOSEN=( $APP_ANSWER ) } # Ask which patterns they want prompt_patterns fi if [ -n $MACROTOOL_URL ]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi if [ ${APP_ANSWER} == FALSE ]; then MACROTOOL_URL="" fi # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" # Create the environment if it does not yet exist POL_Wine_PrefixCreate POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" if [ ${APP_ANSWER} == FALSE ]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" if [ -n $MACROTOOL_URL ]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi if [ ${BASH_VERSINFO[0]} -ge 4 ]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done fi # Apply a registry tweak to open PDF files in the native viewer POL_Call POL_Function_SetNativeExtension "pdf" # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer if [ -n $MACROTOOL_URL ]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi if [ ${BASH_VERSINFO[0]} -ge 4 ]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done fi # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" if [ -n $MACROTOOL_URL ]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi POL_SetupWindow_Close # Clean up after ourselves POL_System_TmpDelete [ -n $DELETE_DOWNLOADS ] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" # The script will be signed; prevent bash from trying # to run the signature exit 0 |
Contributions
Filters:
ContributeMember | Message |
gap | Thursday 9 July 2015 at 9:49 |
gap
|
InformationThis update has been approved by the team. Differences@@ -1,44 +1,24 @@ -#!/usr/bin/env playonlinux-bash -# Date : (2015-05-17 23-19) -# Last revision : (2015-06-10 12-59) -# Wine version used : 1.6.2 -# Distribution used to test : Ubuntu -# Author : Alex Elsayed <eternaleye@gmail.com> - -# Must be run under PlayOn* -[[ -z "$PLAYONLINUX" ]] && exit 0 - -# Load the PlayOnLinux scripting library -source "$PLAYONLINUX/lib/sources" - -TITLE="PatternMaker" -PREFIX="PatternMaker" -# Note: This is assumed to end in /INSTALLER_NAME -INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" -INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" -MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" -MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" -DELETE_DOWNLOADS="" - + # Create the setup window POL_SetupWindow_Init - + # Required POL_Debug_Init - + # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" - + # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) -if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then - POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" - POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" +# Removed warnings since all versions of OSX use Bash < 4 +if [ ${BASH_VERSINFO[0]} -lt 4 ]; then + # POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" + # POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else declare -a PATTERNS_CHOSEN declare -A PATTERN_URLS declare -A PATTERN_DIGESTS - + PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" @@ -71,82 +51,82 @@ [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Men]="4c63bec7897419aee20541f05695333e" ) - + function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" PATTERNS_CHOSEN=( $APP_ANSWER ) } - + # Ask which patterns they want prompt_patterns fi - -if [[ -n $MACROTOOL_URL ]]; then + +if [ -n $MACROTOOL_URL ]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi -if [[ ${APP_ANSWER} == FALSE ]]; then +if [ ${APP_ANSWER} == FALSE ]; then MACROTOOL_URL="" fi - + # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" - + # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" - + # Create the environment if it does not yet exist POL_Wine_PrefixCreate - + POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" -if [[ ${APP_ANSWER} == FALSE ]]; then +if [ ${APP_ANSWER} == FALSE ]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi - + POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" -if [[ -n $MACROTOOL_URL ]]; then +if [ -n $MACROTOOL_URL ]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi -if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then +if [ ${BASH_VERSINFO[0]} -ge 4 ]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done fi - + # Apply a registry tweak to open PDF files in the native viewer POL_Call POL_Function_SetNativeExtension "pdf" - + # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer -if [[ -n $MACROTOOL_URL ]]; then +if [ -n $MACROTOOL_URL ]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi -if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then +if [ ${BASH_VERSINFO[0]} -ge 4 ]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done fi - + # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" - -if [[ -n $MACROTOOL_URL ]]; then + +if [ -n $MACROTOOL_URL ]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi - + POL_SetupWindow_Close - + # Clean up after ourselves POL_System_TmpDelete -[[ -n $DELETE_DOWNLOADS ]] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" - +[ -n $DELETE_DOWNLOADS ] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" + # The script will be signed; prevent bash from trying # to run the signature -exit 0; \ No newline at end of file +exit 0 \ No newline at end of file New source code# Create the setup window POL_SetupWindow_Init # Required POL_Debug_Init # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) # Removed warnings since all versions of OSX use Bash < 4 if [ ${BASH_VERSINFO[0]} -lt 4 ]; then # POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" # POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else declare -a PATTERNS_CHOSEN declare -A PATTERN_URLS declare -A PATTERN_DIGESTS PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" ) PATTERN_DIGESTS=( [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Men]="4c63bec7897419aee20541f05695333e" ) function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" PATTERNS_CHOSEN=( $APP_ANSWER ) } # Ask which patterns they want prompt_patterns fi if [ -n $MACROTOOL_URL ]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi if [ ${APP_ANSWER} == FALSE ]; then MACROTOOL_URL="" fi # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" # Create the environment if it does not yet exist POL_Wine_PrefixCreate POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" if [ ${APP_ANSWER} == FALSE ]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" if [ -n $MACROTOOL_URL ]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi if [ ${BASH_VERSINFO[0]} -ge 4 ]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done fi # Apply a registry tweak to open PDF files in the native viewer POL_Call POL_Function_SetNativeExtension "pdf" # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer if [ -n $MACROTOOL_URL ]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi if [ ${BASH_VERSINFO[0]} -ge 4 ]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done fi # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" if [ -n $MACROTOOL_URL ]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi POL_SetupWindow_Close # Clean up after ourselves POL_System_TmpDelete [ -n $DELETE_DOWNLOADS ] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" # The script will be signed; prevent bash from trying # to run the signature exit 0 Replies |
gap | Friday 12 June 2015 at 3:43 |
gap
|
WarningThis update has not been approved yet by the team. MessageThanks Petch for reviewing the code. Thanks Ronin for testing! I have added the WINEVERSION="1.6.2". It is one line of code. Do I need to add something else? I am not a bash programmer so I can make newbie mistakes. The repository for this script is at https://bitbucket.org/publicpm/pmonplayonmac I am looking forward to getting this approved so I can start promoting Play On Linux/Play On Mac on the PatternMaker website. Differences@@ -1,6 +1,6 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-05-17 23-19) -# Last revision : (2015-06-10 12-59) +# Last revision : (2015-06-10 13-32) # Wine version used : 1.6.2 # Distribution used to test : Ubuntu # Author : Alex Elsayed <eternaleye@gmail.com> @@ -11,6 +11,7 @@ # Load the PlayOnLinux scripting library source "$PLAYONLINUX/lib/sources" +WINEVERSION="1.6.2" TITLE="PatternMaker" PREFIX="PatternMaker" # Note: This is assumed to end in /INSTALLER_NAME @@ -41,35 +42,35 @@ PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" - [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" - [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" - [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" - [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" - [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" - [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" - [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" - [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" - [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" - [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" - [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" - [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" - [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" + [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" + [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" + [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" + [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" + [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" + [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" + [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" + [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" + [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" + [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" + [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" + [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" + [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" ) PATTERN_DIGESTS=( [Juniors]="af6b2608c2bd58cffc92240a155802ac" - [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" - [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" - [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" - [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" - [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" - [Sportswear]="8134c599093a6efb41c826e30f2a7b29" - [Dog Suit]="626c552d11535269f6c51a12984b2c2f" - [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" - [Super Skirt]="a1f176557b60eec95d065c57c0c17601" - [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" - [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" - [Super Pants]="76be51f9f3eb2318deab5b008869b191" - [Men]="4c63bec7897419aee20541f05695333e" + [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" + [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" + [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" + [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" + [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" + [Sportswear]="8134c599093a6efb41c826e30f2a7b29" + [Dog Suit]="626c552d11535269f6c51a12984b2c2f" + [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" + [Super Skirt]="a1f176557b60eec95d065c57c0c17601" + [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" + [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" + [Super Pants]="76be51f9f3eb2318deab5b008869b191" + [Men]="4c63bec7897419aee20541f05695333e" ) function prompt_patterns() { @@ -149,4 +150,4 @@ # The script will be signed; prevent bash from trying # to run the signature -exit 0; \ No newline at end of file +exit 0; New source code#!/usr/bin/env playonlinux-bash # Date : (2015-05-17 23-19) # Last revision : (2015-06-10 13-32) # Wine version used : 1.6.2 # Distribution used to test : Ubuntu # Author : Alex Elsayed <eternaleye@gmail.com> # Must be run under PlayOn* [[ -z "$PLAYONLINUX" ]] && exit 0 # Load the PlayOnLinux scripting library source "$PLAYONLINUX/lib/sources" WINEVERSION="1.6.2" TITLE="PatternMaker" PREFIX="PatternMaker" # Note: This is assumed to end in /INSTALLER_NAME INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" DELETE_DOWNLOADS="" # Create the setup window POL_SetupWindow_Init # Required POL_Debug_Init # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else declare -a PATTERNS_CHOSEN declare -A PATTERN_URLS declare -A PATTERN_DIGESTS PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" ) PATTERN_DIGESTS=( [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Men]="4c63bec7897419aee20541f05695333e" ) function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" PATTERNS_CHOSEN=( $APP_ANSWER ) } # Ask which patterns they want prompt_patterns fi if [[ -n $MACROTOOL_URL ]]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi if [[ ${APP_ANSWER} == FALSE ]]; then MACROTOOL_URL="" fi # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" # Create the environment if it does not yet exist POL_Wine_PrefixCreate POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" if [[ ${APP_ANSWER} == FALSE ]]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" if [[ -n $MACROTOOL_URL ]]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done fi # Apply a registry tweak to open PDF files in the native viewer POL_Call POL_Function_SetNativeExtension "pdf" # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer if [[ -n $MACROTOOL_URL ]]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done fi # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" if [[ -n $MACROTOOL_URL ]]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi POL_SetupWindow_Close # Clean up after ourselves POL_System_TmpDelete [[ -n $DELETE_DOWNLOADS ]] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" # The script will be signed; prevent bash from trying # to run the signature exit 0; RepliesFriday 12 June 2015 at 7:06
|
Ronin DUSETTE | Thursday 11 June 2015 at 6:14 |
Ronin DUSETTE
|
WarningThis update has not been approved yet by the team. MessageRemoving extra brackets around true/false statements. Differences@@ -5,10 +5,7 @@ # Distribution used to test : Ubuntu # Author : Alex Elsayed <eternaleye@gmail.com> -# Must be run under PlayOn* -[[ -z "$PLAYONLINUX" ]] && exit 0 - -# Load the PlayOnLinux scripting library +[ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="PatternMaker" @@ -31,7 +28,7 @@ # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) -if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then +if [ ${BASH_VERSINFO[0]} -lt 4 ]; then POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else @@ -82,10 +79,10 @@ prompt_patterns fi -if [[ -n $MACROTOOL_URL ]]; then +if [ -n $MACROTOOL_URL ]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi -if [[ ${APP_ANSWER} == FALSE ]]; then +if [ ${APP_ANSWER} == FALSE ]; then MACROTOOL_URL="" fi @@ -101,7 +98,7 @@ POL_Wine_PrefixCreate POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" -if [[ ${APP_ANSWER} == FALSE ]]; then +if [ ${APP_ANSWER} == FALSE ]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi @@ -109,10 +106,10 @@ POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" -if [[ -n $MACROTOOL_URL ]]; then +if [ -n $MACROTOOL_URL ]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi -if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then +if [ ${BASH_VERSINFO[0]} -ge 4 ]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done @@ -124,10 +121,10 @@ # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer -if [[ -n $MACROTOOL_URL ]]; then +if [ -n $MACROTOOL_URL ]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi -if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then +if [ ${BASH_VERSINFO[0]} -ge 4 ]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" @@ -137,7 +134,7 @@ # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" -if [[ -n $MACROTOOL_URL ]]; then +if [ -n $MACROTOOL_URL ]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi @@ -145,8 +142,8 @@ # Clean up after ourselves POL_System_TmpDelete -[[ -n $DELETE_DOWNLOADS ]] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" +[ -n $DELETE_DOWNLOADS ] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" # The script will be signed; prevent bash from trying # to run the signature -exit 0; \ No newline at end of file +exit 0 \ No newline at end of file New source code#!/usr/bin/env playonlinux-bash # Date : (2015-05-17 23-19) # Last revision : (2015-06-10 12-59) # Wine version used : 1.6.2 # Distribution used to test : Ubuntu # Author : Alex Elsayed <eternaleye@gmail.com> [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="PatternMaker" PREFIX="PatternMaker" # Note: This is assumed to end in /INSTALLER_NAME INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" DELETE_DOWNLOADS="" # Create the setup window POL_SetupWindow_Init # Required POL_Debug_Init # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) if [ ${BASH_VERSINFO[0]} -lt 4 ]; then POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else declare -a PATTERNS_CHOSEN declare -A PATTERN_URLS declare -A PATTERN_DIGESTS PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" ) PATTERN_DIGESTS=( [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Men]="4c63bec7897419aee20541f05695333e" ) function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" PATTERNS_CHOSEN=( $APP_ANSWER ) } # Ask which patterns they want prompt_patterns fi if [ -n $MACROTOOL_URL ]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi if [ ${APP_ANSWER} == FALSE ]; then MACROTOOL_URL="" fi # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" # Create the environment if it does not yet exist POL_Wine_PrefixCreate POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" if [ ${APP_ANSWER} == FALSE ]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" if [ -n $MACROTOOL_URL ]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi if [ ${BASH_VERSINFO[0]} -ge 4 ]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done fi # Apply a registry tweak to open PDF files in the native viewer POL_Call POL_Function_SetNativeExtension "pdf" # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer if [ -n $MACROTOOL_URL ]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi if [ ${BASH_VERSINFO[0]} -ge 4 ]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done fi # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" if [ -n $MACROTOOL_URL ]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi POL_SetupWindow_Close # Clean up after ourselves POL_System_TmpDelete [ -n $DELETE_DOWNLOADS ] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" # The script will be signed; prevent bash from trying # to run the signature exit 0 RepliesThursday 11 June 2015 at 6:48
Thursday 11 June 2015 at 7:06
Thursday 11 June 2015 at 7:09
Thursday 11 June 2015 at 7:16
Thursday 11 June 2015 at 8:08
Thursday 11 June 2015 at 8:11
Thursday 11 June 2015 at 18:05
Thursday 11 June 2015 at 19:02
Thursday 11 June 2015 at 19:10
Thursday 11 June 2015 at 19:12
Thursday 11 June 2015 at 19:14
Thursday 11 June 2015 at 19:14
Thursday 11 June 2015 at 19:18
Thursday 11 June 2015 at 19:22
Thursday 11 June 2015 at 19:30
Thursday 11 June 2015 at 19:32
Thursday 11 June 2015 at 19:37
Thursday 11 June 2015 at 20:01
Sunday 5 July 2015 at 12:08
Edited by RoninDusette |
gap | Wednesday 10 June 2015 at 22:22 |
gap
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,152 @@ +#!/usr/bin/env playonlinux-bash +# Date : (2015-05-17 23-19) +# Last revision : (2015-06-10 12-59) +# Wine version used : 1.6.2 +# Distribution used to test : Ubuntu +# Author : Alex Elsayed <eternaleye@gmail.com> + +# Must be run under PlayOn* +[[ -z "$PLAYONLINUX" ]] && exit 0 + +# Load the PlayOnLinux scripting library +source "$PLAYONLINUX/lib/sources" + +TITLE="PatternMaker" +PREFIX="PatternMaker" +# Note: This is assumed to end in /INSTALLER_NAME +INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" +INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" +MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" +MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" +DELETE_DOWNLOADS="" + +# Create the setup window +POL_SetupWindow_Init + +# Required +POL_Debug_Init + +# Set up the initial page +POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" + +# Test for a new enough Bash +# Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) +if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then + POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" + POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" +else + declare -a PATTERNS_CHOSEN + declare -A PATTERN_URLS + declare -A PATTERN_DIGESTS + + PATTERN_URLS=( + [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" + [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" + [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" + [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" + [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" + [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" + [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" + [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" + [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" + [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" + [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" + [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" + [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" + [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" + ) + PATTERN_DIGESTS=( + [Juniors]="af6b2608c2bd58cffc92240a155802ac" + [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" + [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" + [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" + [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" + [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" + [Sportswear]="8134c599093a6efb41c826e30f2a7b29" + [Dog Suit]="626c552d11535269f6c51a12984b2c2f" + [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" + [Super Skirt]="a1f176557b60eec95d065c57c0c17601" + [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" + [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" + [Super Pants]="76be51f9f3eb2318deab5b008869b191" + [Men]="4c63bec7897419aee20541f05695333e" + ) + + function prompt_patterns() { + local IFS="~" + POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" + PATTERNS_CHOSEN=( $APP_ANSWER ) + } + + # Ask which patterns they want + prompt_patterns +fi + +if [[ -n $MACROTOOL_URL ]]; then + POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" +fi +if [[ ${APP_ANSWER} == FALSE ]]; then + MACROTOOL_URL="" +fi + +# Create a temporary directory we can use +POL_System_TmpCreate "${PREFIX}" +# ...and enter it +cd "${POL_System_TmpDir}" + +# Install into the PatternMaker Wine environment +POL_Wine_SelectPrefix "${PREFIX}" + +# Create the environment if it does not yet exist +POL_Wine_PrefixCreate + +POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" +if [[ ${APP_ANSWER} == FALSE ]]; then + DELETE_DOWNLOADS="1" + POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" +fi + +POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" +# Download the installer, verifying it against a digest +POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" +if [[ -n $MACROTOOL_URL ]]; then + POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" +fi +if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then + for pat in "${PATTERNS_CHOSEN[@]}"; do + POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" + done +fi + +# Apply a registry tweak to open PDF files in the native viewer +POL_Call POL_Function_SetNativeExtension "pdf" + +# Run the installer +POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" +# And the macro installer +if [[ -n $MACROTOOL_URL ]]; then + POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" +fi +if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then + # And the pattern installers + for pat in "${PATTERNS_CHOSEN[@]}"; do + POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" + done +fi + +# Create a shortcut +POL_Shortcut "PatVer7_5.exe" "${TITLE}" + +if [[ -n $MACROTOOL_URL ]]; then + POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" +fi + +POL_SetupWindow_Close + +# Clean up after ourselves +POL_System_TmpDelete +[[ -n $DELETE_DOWNLOADS ]] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" + +# The script will be signed; prevent bash from trying +# to run the signature +exit 0; \ No newline at end of file New source code#!/usr/bin/env playonlinux-bash # Date : (2015-05-17 23-19) # Last revision : (2015-06-10 12-59) # Wine version used : 1.6.2 # Distribution used to test : Ubuntu # Author : Alex Elsayed <eternaleye@gmail.com> # Must be run under PlayOn* [[ -z "$PLAYONLINUX" ]] && exit 0 # Load the PlayOnLinux scripting library source "$PLAYONLINUX/lib/sources" TITLE="PatternMaker" PREFIX="PatternMaker" # Note: This is assumed to end in /INSTALLER_NAME INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" DELETE_DOWNLOADS="" # Create the setup window POL_SetupWindow_Init # Required POL_Debug_Init # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" # Test for a new enough Bash # Fixes runtime error on OS X 10.6.8 (with Bash 3.2.48) if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then POL_Debug_Error "This version of Bash doesn't support associative arrays, some functionality may not be usable" POL_SetupWindow_message "$(eval_gettext "As your system has an old version of Bash, this script will be unable to install any patterns for you")" "$TITLE" else declare -a PATTERNS_CHOSEN declare -A PATTERN_URLS declare -A PATTERN_DIGESTS PATTERN_URLS=( [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" ) PATTERN_DIGESTS=( [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Men]="4c63bec7897419aee20541f05695333e" ) function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "$(eval_gettext "What patterns would you like to install?")" "${TITLE}" "${!PATTERN_URLS[*]}" "~" PATTERNS_CHOSEN=( $APP_ANSWER ) } # Ask which patterns they want prompt_patterns fi if [[ -n $MACROTOOL_URL ]]; then POL_SetupWindow_question "$(eval_gettext "Would you like to install the PatternMaker MacroGenerator?")" "$TITLE" fi if [[ ${APP_ANSWER} == FALSE ]]; then MACROTOOL_URL="" fi # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" # Create the environment if it does not yet exist POL_Wine_PrefixCreate POL_SetupWindow_question "$(eval_gettext "Several installers will be downloaded, and may be beneficial to keep afterwards. Would you like to keep them?")" "$TITLE" if [[ ${APP_ANSWER} == FALSE ]]; then DELETE_DOWNLOADS="1" POL_SetupWindow_message "$(eval_gettext "Understood. All downloaded files will be deleted when finished.")" fi POL_SetupWindow_message "$(eval_gettext "Downloading installers...")" # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" if [[ -n $MACROTOOL_URL ]]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done fi # Apply a registry tweak to open PDF files in the native viewer POL_Call POL_Function_SetNativeExtension "pdf" # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer if [[ -n $MACROTOOL_URL ]]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then # And the pattern installers for pat in "${PATTERNS_CHOSEN[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done fi # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" if [[ -n $MACROTOOL_URL ]]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi POL_SetupWindow_Close # Clean up after ourselves POL_System_TmpDelete [[ -n $DELETE_DOWNLOADS ]] && rm -r "${POL_USER_ROOT}/ressources/${TITLE}" # The script will be signed; prevent bash from trying # to run the signature exit 0; Replies |
gap | Tuesday 9 June 2015 at 23:35 |
gap
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,111 @@ +#!/usr/bin/env playonlinux-bash +# Date : (2015-05-17 23-19) +# Last revision : (2015-06-09 07-59) +# Wine version used : 1.6.2 +# Distribution used to test : Ubuntu +# Author : Alex Elsayed <eternaleye@gmail.com> + +# Must be run under PlayOn* +[[ -z "$PLAYONLINUX" ]] && exit 0 + +# Load the PlayOnLinux scripting library +source "$PLAYONLINUX/lib/sources" + +TITLE="PatternMaker" +PREFIX="PatternMaker" +# Note: This is assumed to end in /INSTALLER_NAME +INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" +INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" +MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" +MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" + +declare -a PATTERN_NAMES +declare -A PATTERN_URLS +declare -A PATTERN_DIGESTS + +PATTERN_NAMES=( "Basic Blocks" "Coat/Robe" "Dog Suit" "Juniors" "Lingerie" "Men" "Raglan" "Renaissance Corset" "Sportswear" "Super Jacket" "Super Pants" "Super Skirt" "Womens Volume 1" "Womens Volume 2" ) +PATTERN_URLS=( [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" ) +PATTERN_DIGESTS=( [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Men]="4c63bec7897419aee20541f05695333e" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" ) + +function prompt_patterns() { + local IFS="~" + POL_SetupWindow_checkbox_list "What patterns would you like to install?" "${TITLE}" "${PATTERN_NAMES[*]}" "~" + PATTERN_NAMES=( $APP_ANSWER ) +} + +# Create the setup window +POL_SetupWindow_Init + +# Required +POL_Debug_Init + +# Set up the initial page +POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" + +# Ask which patterns they want +prompt_patterns + +if [[ -n $MACROTOOL_URL ]]; then + POL_SetupWindow_question "Would you like to install the PatternMaker MacroGenerator?" "$TITLE" +fi +if [[ ${APP_ANSWER} == FALSE ]]; then + MACROTOOL_URL="" +fi + +# Create a temporary directory we can use +POL_System_TmpCreate "${PREFIX}" +# ...and enter it +cd "${POL_System_TmpDir}" + +# Install into the PatternMaker Wine environment +POL_Wine_SelectPrefix "${PREFIX}" + +# Create the environment if it does not yet exist +if ! POL_Wine_PrefixExists; then + POL_Wine_PrefixCreate +fi + +POL_SetupWindow_message "Downloading installers..." +# Download the installer, verifying it against a digest +POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" +if [[ -n $MACROTOOL_URL ]]; then + POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" +fi +for pat in "${PATTERN_NAMES[@]}"; do + POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" +done + +# Prepare a registry tweak to open PDF files in the native viewer +cat <<REGISTRY > "${POL_System_TmpDir}/pdfassoc.reg" +[HKEY_CLASSES_ROOT\.pdf] +@="PDFfile" +"Content Type"="application/pdf" +[HKEY_CLASSES_ROOT\PDFfile\Shell\Open\command] +@="winebrowser \"%1\"" +REGISTRY + +# Apply said registry tweak +POL_Wine regedit "${POL_System_TmpDir}/pdfassoc.reg" + +# Run the installer +POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" +# And the macro installer +if [[ -n $MACROTOOL_URL ]]; then + POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" +fi +# And the pattern installers +for pat in "${PATTERN_NAMES[@]}"; do + POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" +done + +# Create a shortcut +POL_Shortcut "PatVer7_5.exe" "${TITLE}" + +if [[ -n $MACROTOOL_URL ]]; then + POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" +fi + +POL_SetupWindow_Close + +# Clean up after ourselves +POL_System_TmpDelete \ No newline at end of file New source code#!/usr/bin/env playonlinux-bash # Date : (2015-05-17 23-19) # Last revision : (2015-06-09 07-59) # Wine version used : 1.6.2 # Distribution used to test : Ubuntu # Author : Alex Elsayed <eternaleye@gmail.com> # Must be run under PlayOn* [[ -z "$PLAYONLINUX" ]] && exit 0 # Load the PlayOnLinux scripting library source "$PLAYONLINUX/lib/sources" TITLE="PatternMaker" PREFIX="PatternMaker" # Note: This is assumed to end in /INSTALLER_NAME INSTALLER_URL="http://www.patternmakerusa.com/downloads/PatternMaker7_5_Setup.exe" INSTALLER_DIGEST="f2625e0b06a58cddf026abf873a58ed2" MACROTOOL_URL="http://www.patternmakerusa.com/downloads/MacroGen4_5_Setup.exe" MACROTOOL_DIGEST="c54cf396c9e53135eeb1fefc7cfd9201" declare -a PATTERN_NAMES declare -A PATTERN_URLS declare -A PATTERN_DIGESTS PATTERN_NAMES=( "Basic Blocks" "Coat/Robe" "Dog Suit" "Juniors" "Lingerie" "Men" "Raglan" "Renaissance Corset" "Sportswear" "Super Jacket" "Super Pants" "Super Skirt" "Womens Volume 1" "Womens Volume 2" ) PATTERN_URLS=( [Basic Blocks]="http://www.patternmakerusa.com/downloads/Blocks_PM75.exe" [Coat/Robe]="http://www.patternmakerusa.com/downloads/CoatRobe_PM75.exe" [Dog Suit]="http://www.patternmakerusa.com/downloads/DogSuit_PM75.exe" [Juniors]="http://www.patternmakerusa.com/downloads/Juniors_PM75.exe" [Lingerie]="http://www.patternmakerusa.com/downloads/Lingerie_PM75.exe" [Men]="http://www.patternmakerusa.com/downloads/Men_PM75.exe" [Raglan]="http://www.patternmakerusa.com/downloads/Raglan_PM75.exe" [Renaissance Corset]="http://www.patternmakerusa.com/downloads/Corset_PM75.exe" [Sportswear]="http://www.patternmakerusa.com/downloads/Sportswear_PM75.exe" [Super Jacket]="http://www.patternmakerusa.com/downloads/SuperJkt_PM75.exe" [Super Pants]="http://www.patternmakerusa.com/downloads/SuperPants_PM75.exe" [Super Skirt]="http://www.patternmakerusa.com/downloads/SuperSkirt_PM75.exe" [Womens Volume 1]="http://www.patternmakerusa.com/downloads/Women1_PM75.exe" [Womens Volume 2]="http://www.patternmakerusa.com/downloads/Women2_PM75.exe" ) PATTERN_DIGESTS=( [Basic Blocks]="cf740e237a4d557a9baf26a097fa6ecc" [Coat/Robe]="d7cf9812fc001c7734f9b136158acbbb" [Dog Suit]="626c552d11535269f6c51a12984b2c2f" [Juniors]="af6b2608c2bd58cffc92240a155802ac" [Lingerie]="2f80a4a894b9fb69d64463bc43fb8841" [Men]="4c63bec7897419aee20541f05695333e" [Raglan]="29f906bf37243dd30cc8e6d02b0b52d8" [Renaissance Corset]="c3db9895a68d886d49100e9163377f12" [Sportswear]="8134c599093a6efb41c826e30f2a7b29" [Super Jacket]="bc3ed65c190967c1853e6fc14c67e936" [Super Pants]="76be51f9f3eb2318deab5b008869b191" [Super Skirt]="a1f176557b60eec95d065c57c0c17601" [Womens Volume 1]="6d51a3747dc00d28f6aedc02d067fb87" [Womens Volume 2]="60317ea8e0d3e0dab742934ecb4abdf1" ) function prompt_patterns() { local IFS="~" POL_SetupWindow_checkbox_list "What patterns would you like to install?" "${TITLE}" "${PATTERN_NAMES[*]}" "~" PATTERN_NAMES=( $APP_ANSWER ) } # Create the setup window POL_SetupWindow_Init # Required POL_Debug_Init # Set up the initial page POL_SetupWindow_presentation "$TITLE" "PatternMaker Software" "http://www.patternmakerusa.com" "Alex Elsayed" "$PREFIX" # Ask which patterns they want prompt_patterns if [[ -n $MACROTOOL_URL ]]; then POL_SetupWindow_question "Would you like to install the PatternMaker MacroGenerator?" "$TITLE" fi if [[ ${APP_ANSWER} == FALSE ]]; then MACROTOOL_URL="" fi # Create a temporary directory we can use POL_System_TmpCreate "${PREFIX}" # ...and enter it cd "${POL_System_TmpDir}" # Install into the PatternMaker Wine environment POL_Wine_SelectPrefix "${PREFIX}" # Create the environment if it does not yet exist if ! POL_Wine_PrefixExists; then POL_Wine_PrefixCreate fi POL_SetupWindow_message "Downloading installers..." # Download the installer, verifying it against a digest POL_Download_Resource "${INSTALLER_URL}" "${INSTALLER_DIGEST}" "${TITLE}" if [[ -n $MACROTOOL_URL ]]; then POL_Download_Resource "${MACROTOOL_URL}" "${MACROTOOL_DIGEST}" "${TITLE}" fi for pat in "${PATTERN_NAMES[@]}"; do POL_Download_Resource "${PATTERN_URLS["${pat}"]}" "${PATTERN_DIGESTS["${pat}"]}" "${TITLE}" done # Prepare a registry tweak to open PDF files in the native viewer cat <<REGISTRY > "${POL_System_TmpDir}/pdfassoc.reg" [HKEY_CLASSES_ROOT\.pdf] @="PDFfile" "Content Type"="application/pdf" [HKEY_CLASSES_ROOT\PDFfile\Shell\Open\command] @="winebrowser \"%1\"" REGISTRY # Apply said registry tweak POL_Wine regedit "${POL_System_TmpDir}/pdfassoc.reg" # Run the installer POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${INSTALLER_URL}")" # And the macro installer if [[ -n $MACROTOOL_URL ]]; then POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${MACROTOOL_URL}")" fi # And the pattern installers for pat in "${PATTERN_NAMES[@]}"; do POL_Wine "${POL_USER_ROOT}/ressources/${TITLE}/$(basename "${PATTERN_URLS["${pat}"]}")" done # Create a shortcut POL_Shortcut "PatVer7_5.exe" "${TITLE}" if [[ -n $MACROTOOL_URL ]]; then POL_Shortcut "MacroGen4_5.exe" "${TITLE} MacroGenerator" fi POL_SetupWindow_Close # Clean up after ourselves POL_System_TmpDelete RepliesTuesday 9 June 2015 at 23:37
Wednesday 10 June 2015 at 18:55
Wednesday 10 June 2015 at 19:08
Wednesday 10 June 2015 at 19:16
Wednesday 10 June 2015 at 19:54
Wednesday 10 June 2015 at 20:02
Wednesday 10 June 2015 at 20:03
Wednesday 10 June 2015 at 21:36
|
gap | Tuesday 9 June 2015 at 17:24 |
gap
|
Message#!/usr/bin/env playonlinux-bash # Must be run under PlayOn* # Load the PlayOnLinux scripting library TITLE="PatternMaker" declare -a PATTERN_NAMES PATTERN_NAMES=( "Basic Blocks" "Coat/Robe" "Dog Suit" "Juniors" "Lingerie" "Men" "Raglan" "Renaissance Corset" "Sportswear" "Super Jacket" "Super Pants" "Super Skirt" "Womens Volume 1" "Womens Volume 2" ) function prompt_patterns() { # Create the setup window # Required # Set up the initial page # Ask which patterns they want if [[ -n $MACROTOOL_URL ]]; then # Create a temporary directory we can use # Install into the PatternMaker Wine environment # Create the environment if it does not yet exist POL_SetupWindow_message "Downloading installers..." # Prepare a registry tweak to open PDF files in the native viewer # Apply said registry tweak # Run the installer # Create a shortcut if [[ -n $MACROTOOL_URL ]]; then POL_SetupWindow_Close # Clean up after ourselves Replies |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com