The forum

[script] Photoscape

Photoscape

Author Replies
fekir Tuesday 25 November 2014 at 22:21
fekirAnonymous

This script is for installing Photoscape 32 bit

[code language=playonlinux]
#!/bin/bash
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.31

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

#############
# Variables #
#############
TITLE="Photoscape 3.7"
PREFIX="photoscape"
WORKING_WINE_VERSION="1.7.31"

#################
# Debug Options     #
#################
POL_SetupWindow_Init
POL_Debug_Init

################
# Presentation       #
################
POL_SetupWindow_presentation "$TITLE" "MOOII Tech" "www.photoscape.org" "Fekir" "$PREFIX"

#########################################
# Prepare everything for Photoscape 3.7                #
#########################################
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_LoadVar_PROGRAMFILES

#########################
# Select file & install               #
#########################
SETUP_OPTIONS=""
cd "$HOME"

POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut        #
###################
POL_Shortcut "PhotoScape.exe" "$TITLE"
POL_Shortcut_QuietDebug "$TITLE"

################
# Clean & exit        #
################
POL_SetupWindow_Close
exit

[/code]

POL_Shortcut_QuietDebug is needed or PlayOnLinux thinks that the Program crashed.

Edited by fekir

fekir Saturday 6 December 2014 at 11:15
fekirAnonymous

I tested the script further, if there is nothing wrong with it I would like it to be added to the supported software.

Quentin PÂRIS Sunday 7 December 2014 at 11:25
Quentin PÂRISAnonymous

You can submit it here: http://www.playonmac.com/en/supported_apps.html

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