The forum

[Script] yWriter 5

Novel writing software

Author Replies
Ronin DUSETTE Friday 3 January 2014 at 22:52
Ronin DUSETTE

Here it be:

[code language=playonlinux]

#!/bin/bash
# Date : (2014-01-03)
# Last revision : (2014-01-03)
# Distribution used to test : Arch 64-bit, fully up-to-date as of 12-03-03
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.2.2
    
    
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
PREFIX="ywriter5"
WINEVERSION="1.6"
TITLE="yWriter 5"
EDITOR="Spacejock Software"
GAME_URL="http://www.spacejock.com"
AUTHOR="DJYoshaBYD"
    
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
    
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
    
#Dependencies
POL_Call POL_Install_gdiplus
POL_Call POL_Install_riched20
    
# Configuration
Set_OS "winxp"
    
# Installation
cd $POL_USER_ROOT/tmp
 
POL_Download "http://www.spacejock.com/files/yWriter5.zip" "d6d49fe8ee56440fbd5ae6506d5e10f7"
 
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading...')" "$TITLE"
 
POL_Debug_Message "Installing $TITLE..."
 
unzip $POL_USER_ROOT/tmp/yWriter5.zip -d $WINEPREFIX/drive_c

 
# Cleanup TMP folder
 
rm $POL_USER_ROOT/tmp/yWriter5.zip
    
# Create Shortcuts
POL_Shortcut "yWriter5.exe" "$TITLE"


POL_SetupWindow_Close
exit 0
[/code]

[b]Screenshots[/b]





[b]Link to resources[/b]

http://repo.dusette.net/FOSS/PlayOnLinux/Scripts/yWriter5/Media/

Edited by RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Saturday 4 January 2014 at 1:43
petch

Hi DJYoshaBYD,
It seems a bit strange to put temporary files in $POL_USER_ROOT/ressources/TMP when there's $POL_USER_ROOT/tmp for that (or POL_System_TmpCreate if you really mean to use a private temporary directory)...
Ronin DUSETTE Sunday 5 January 2014 at 18:44
Ronin DUSETTE

Oh ok. I didnt know that we have a function for that (Its been a while since looking through the manual or through the POL source). Ill make that correction in a bit. Sorry about that. haha

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Sunday 5 January 2014 at 18:52
Ronin DUSETTE

I corrected it, and tested. Its now fine using the actual tmp folder we have in place. I also updated the script and tested through POL.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Sunday 5 January 2014 at 19:40
petch