Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Add "install_compile_dependencies"
Browse files Browse the repository at this point in the history
You might need to run install_sm64_dependencies still.
  • Loading branch information
tulpenkiste committed May 21, 2022
1 parent d5c8267 commit 92c9260
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 13 additions & 0 deletions install_compile_dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
echo "This script will install some required packages to run and build SM64 on Linux."
echo "Package Manager [APT/DNF/PACMAN]: "
read PACMAN
PACMAN=${PACMAN^^}
if [ "$PACMAN" == "APT" ]; then
sudo apt install build-essential extra-cmake-modules cmake qtbase5-dev qtdeclarative5-dev libqt5svg5-dev qtquickcontrols2-5-dev qml-module-org-kde-kirigami2 kirigami2-dev libkf5i18n-dev gettext libkf5coreaddons-dev qml-module-qtquick-layouts
elif [ "$PACMAN" == "DNF" ]; then
sudo dnf groupinstall "Development Tools" "Development Libraries"
sudo dnf install extra-cmake-modules cmake qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtquickcontrols2-devel kf5-kirigami2 kf5-kirigami2-devel kf5-ki18n-devel kf5-kcoreaddons-devel gettext
elif [ "$PACMAN" == "PACMAN" ]; then
sudo pacman -S base-devel extra-cmake-modules cmake kirigami2 kde-sdk-meta gettext
fi
2 changes: 0 additions & 2 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ int Backend::run(QString folder) {
}

int Backend::rmDir(QString folder) {
//char* cmd = string_to_char("rm -rf sm64-builds/" + folder.toStdString()); // Avoid running in background to ensure that buildFind(0) works.
//system(cmd);
fs::path folderToRemove{"sm64-builds/" + folder.toStdString()};
fs::remove(folderToRemove);
buildFind(0);
Expand Down

0 comments on commit 92c9260

Please sign in to comment.