@@ -3,31 +3,48 @@ echo "######## KODE INSTALL SCRIPT ########"
3
3
4
4
if [ -f /usr/bin/wine ]
5
5
then
6
- echo " ## Wine is installed. Continuing"
6
+ echo " Wine is installed. Continuing"
7
7
else
8
- echo " ##Installing Wine"
9
- sudo apt-get install wine
10
- echo " ##Wine is installed. Continuing"
8
+ echo " Wine is not installed. Please install to continue"
11
9
fi
12
10
13
- echo " ##Creating folders"
14
- mkdir -p ~ /.cache/winetricks
15
- echo " ##Moving dependancies"
16
- mv ./packages/* ~ /.cache/winetricks/
11
+ # Lets get wine ready
12
+ echo " Setting up Wine"
13
+ WINE=$HOME /.kode/
14
+ WINEPREFIX=$WINE WINEARCH=win32 wineboot > /dev/null 2>&1
15
+ rm -f $WINE /drive_c/windows/system32/mscoree.dll
16
+ WINEPREFIX=$WINE wine uninstaller --remove ' {E45D8920-A758-4088-B6C6-31DBB276992E}'
17
+ echo " Done"
17
18
18
- echo " ##Creating a clean Wine environment"
19
- echo " ##You will need to press Ok on dialog to continue"
20
- WINEARCH=win32 winecfg
19
+ # Now lets fetch the dotnet40 installer and install it
20
+ echo " Installing .Net 4"
21
+ wget http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe
22
+ WINEPREFIX=$WINE wine dotNetFx40_Full_x86_x64.exe /q > /dev/null 2>&1
23
+ echo " Done"
21
24
22
- echo " ##We are ready to install Kode. This will take some time and there will be little visual feedback."
23
- echo " ##This script will tell you when install is finished"
24
- env WINEARCH=win32 winetricks -q dotnet45
25
+ # Make a file that we need for the next bit
26
+ echo " Doing some config stuff"
27
+ cat > key.reg << EOF
28
+ [HKEY_CURRENT_USER\Software\Wine\DllOverrides]
29
+ "mscoree"="native"
30
+ EOF
25
31
32
+ # Set some registry entries to make things work
33
+ WINEPREFIX=$WINE wine reg add " HKLM\\ Software\\ Microsoft\\ NET Framework Setup\\ NDP\\ v4\\ Full" /v Install /t REG_DWORD /d 0001 /f
34
+ WINEPREFIX=$WINE wine reg add " HKLM\\ Software\\ Microsoft\\ NET Framework Setup\\ NDP\\ v4\\ Full" /v Version /t REG_SZ /d " 4.0.30319" /f
35
+ WINEPREFIX=$WINE wine regedit key.reg
36
+
37
+ # Delete a file that we dont need anymore
38
+ rm -f key.reg
39
+ echo " Done"
40
+
41
+ # Get Kode ready to go
42
+ echo " Getting Kode ready"
26
43
sudo chmod +x ./kode
27
- sudo mkdir -p ~ /.wine /drive_c/Program\ Files/Kode
28
- sudo mv ./app/* ~ /.wine /drive_c/Program\ Files/Kode/
44
+ mkdir -p ~ /.kode /drive_c/Program\ Files/Kode
45
+ mv ./app/* ~ /.kode /drive_c/Program\ Files/Kode/
29
46
sudo mv ./Kode.desktop /usr/share/applications
30
47
sudo mv ./kode /bin
31
- sudo ln -s ~ /.steam/steam ~ /.wine/drive_c/Program\ Files/Kode/
32
48
33
- echo " Install complete"
49
+ WINEPREFIX=$WINE wine $WINE /drive_c/windows/Microsoft.NET/Framework/v4.0.30319/ngen.exe executequeueditems > /dev/null 2>&1
50
+ echo " Done. You can launch Kode by typing 'kode' into the terminal or by launching it through your applications menu, found over Development Tools"
0 commit comments