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

Working on install script

parent a8b7f523
......@@ -46,7 +46,7 @@ unix {
BINDIR = $$PREFIX/bin
}
isEmpty(DATADIR) {
DATADIR = $$PREFIX/share
DATADIR = ~/.local/share
}
DEFINES += DATADIR=\\\"$${DATADIR}/quatter\\\"
......
......@@ -55,7 +55,7 @@ void MasterControl::Setup()
SetRandomSeed(TIME->GetSystemTime());
FileSystem* fs{GetSubsystem<FileSystem>()};
String resourcePath{"/usr/local/share/quatter"};
String resourcePath{"~/.local/share/quatter"};
if (!fs->DirExists(resourcePath)){
resourcePath = "Resources";
}
......
......@@ -14,6 +14,7 @@ make
cd ..
git pull
rm -f *.o
qmake Quatter.pro
sudo make uninstall
sudo make install
......
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