forked from petchema/playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPublish or Perish
61 lines (46 loc) · 1.38 KB
/
Publish or Perish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# CHANGELOG
# [SuperPlumus] (2013-06-27 11-38)
# Clean code
# [petch] (2013-07-13 08-00)
# Update hash
# [petch] (2013-09-03 19-22)
# Update hash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Publish or Perish"
PREFIX="PublishOrPerish"
WORKING_WINE_VERSION="1.2.3"
EDITEUR="Harzing.com"
EDITEUR_URL="http://www.harzing.com/"
POP_URL="http://www.harzing.com/download/PoPSetup.exe"
FILE="PoPSetup.exe"
EXECUTABLE="PoP.exe"
AUTEUR="Tinou"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITEUR" "$EDITEUR_URL" "$AUTEUR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
POL_Wine_InstallFonts
POL_Call POL_Install_LunaTheme
cd "$POL_System_TmpDir"
if [ "$POL_SELECTED_FILE" ]; then
SetupFile="$POL_SELECTED_FILE"
else
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
POL_Download "$POP_URL" "404aaf61cb7798a91931f6ca14f2c466"
SetupFile="$POL_System_TmpDir/PoPSetup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SetupFile="$APP_ANSWER"
fi
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupFile"
POL_System_TmpDelete
POL_Shortcut "$EXECUTABLE" "$TITLE"
POL_SetupWindow_Close
exit 0