Skip to content

Commit 36bb007

Browse files
author
Hamish
committed
Merge branch 'develop'
2 parents 4969358 + e41d380 commit 36bb007

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+4341
-20421
lines changed

linux installer/Kode.desktop

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[Desktop Entry]
22
Encoding=UTF-8
3-
Version=0.3
3+
Version=0.5
44
Name=Kode
5-
Icon=~/.wine/drive_c/Program\ Files/Kode/icon.png
5+
Icon=~/.kode/drive_c/Program\ Files/Kode/icon.png
66
Exec=/bin/kode
77
Terminal=false
88
Type=Application

linux installer/app/README.md

-1
This file was deleted.

linux installer/app/icon.png

-1.2 KB
Binary file not shown.

linux installer/install.sh

+35-18
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,48 @@ echo "######## KODE INSTALL SCRIPT ########"
33

44
if [ -f /usr/bin/wine ]
55
then
6-
echo "##Wine is installed. Continuing"
6+
echo "Wine is installed. Continuing"
77
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"
119
fi
1210

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"
1718

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"
2124

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
2531

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"
2643
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/
2946
sudo mv ./Kode.desktop /usr/share/applications
3047
sudo mv ./kode /bin
31-
sudo ln -s ~/.steam/steam ~/.wine/drive_c/Program\ Files/Kode/
3248

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"

linux installer/kode

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
cd ~/.wine/drive_c/Program\ Files/Kode
3-
/usr/bin/wine Kode.exe
2+
cd ~/.kode/drive_c/Program\ Files/Kode
3+
WINEPREFIX=~/.kode /usr/bin/wine Kode.exe
Binary file not shown.
-1.02 MB
Binary file not shown.

0 commit comments

Comments
 (0)