Commit a50ed44b authored by 魔大农's avatar 魔大农 🍀

Working on install script

parent 3daa3423
......@@ -56,7 +56,7 @@ unix {
icon.path = $$DATADIR/icons/
pixmap.files = Resources/*
pixmap.path = $$DATADIR/quatter/
pixmap.path = $$DATADIR/luckey/quatter/
desktop.files = quatter.desktop
desktop.path = $$DATADIR/applications/
......
......@@ -61,7 +61,7 @@ void MasterControl::Setup()
engineParameters_["WindowIcon"] = "icon.png";
//Add resource path
String resourcePath{fs->GetUserDocumentsDir()+".local/share/quatter"};
String resourcePath{fs->GetAppPreferencesDir("luckey", "quatter")};
if (!fs->DirExists(resourcePath)){
Log::Write(1, resourcePath);
resourcePath = "Resources";
......
......@@ -3,7 +3,13 @@ sudo apt-get install libx11-dev libxrandr-dev libasound2-dev git cmake make
cd `dirname $0`
if [ ! -d Urho3D ]
then
git clone https://github.com/Urho3D/Urho3D
cd ..
if [ ! -d Urho3D ]
then
git clone https://github.com/Urho3D/Urho3D
fi
cd `dirname $0`
ln -s ../Urho3D
fi
cd Urho3D
......@@ -13,9 +19,9 @@ git pull
make
cd ..
sudo make uninstall
git pull
rm -f *.o
qmake Quatter.pro
sudo make uninstall
sudo make install
sudo update-icon-caches ~/.local/share/icons/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment