This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LINE.sh
78 lines (56 loc) · 2.36 KB
/
LINE.sh
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# Date : (2020-05-01)
# Last revision : (2020-05-01)
# Wine version used : 5.7
# Distribution used to test : Ubuntu 20.04
# Author : jrandiny
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="LINE Messenger"
PREFIX="LINEMessenger"
WORKING_WINE_VERSION="5.7"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "LINE Corporation" "https://line.me" "jrandiny" "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
Set_OS "win7"
POL_Call POL_Install_msvc90
POL_Call POL_Install_gecko
POL_Call POL_Install_corefonts
POL_Call POL_Install_msxml3
POL_Call POL_Install_dotnet40
POL_Call POL_Install_dotnet20
POL_Call POL_Install_dotnet20sp2
POL_Call POL_Install_vcrun2008
POL_SetupWindow_InstallMethod "LOCAL, DOWNLOAD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd $HOME
POL_SetupWindow_browse "$(eval_gettext "Please select the setup file")" "$TITLE"
SETUP_FILE="$APP_ANSWER"
cd "$WINEPREFIX/drive_c"
cp "$SETUP_FILE" "LineInst.exe"
SETUP_EXE="LineInst.exe"
fi
if [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
cd "$WINEPREFIX/drive_c"
POL_Download "https://desktop.line-scdn.net/win/new/LineInst.exe"
SETUP_EXE="LineInst.exe"
fi
POL_SetupWindow_message "Please read before continuing\n\nLINE installer will automatically open the app after installation. Please quit the app immediately as soon as that happen" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE" --allow-kill
POL_SetupWindow_message "There are currently some minor graphical glitch (border arround LINE window on top of every app) when running LINE on normal mode. To overcome this you can enable 'virtual desktop' mode but notification will not be shown outside of the 'virtual desktop'" "$TITLE"
POL_SetupWindow_menu "Please choose" "$TITLE" "Normal~Virtual Desktop" "~"
if [ "$APP_ANSWER" == "Virtual Desktop" ]; then
Set_Desktop "On" "1366" "768"
fi
POL_Shortcut "LINE.exe" "$TITLE"
rm -f $HOME/Desktop/LINE.desktop
rm -f $HOME/Desktop/LINE Uninstall.desktop
rm -rf $HOME/.local/share/applications/wine/Programs/LINE
update-desktop-database ~/.local/share/applications/
POL_SetupWindow_message "All done!\n\nYou should be able to find LINE on your application list\n\nSuggestion and fixes are welcome\n\nhttps://github.com/jrandiny/POL_LINE"
POL_SetupWindow_Close
exit