nero-umu: 1.1.1 -> 1.1.2

This commit is contained in:
ern775
2025-06-27 09:09:37 +03:00
parent 88756472e1
commit 43bbaca7b3
3 changed files with 2 additions and 76 deletions
-57
View File
@@ -1,57 +0,0 @@
--- a/src/nerofs.cpp
+++ b/src/nerofs.cpp
@@ -173,31 +173,19 @@
QString NeroFS::GetIcoextract()
{
- // TODO: this is for flexibility in sandboxed environments(?)
- // idk what the "good" path should be for Flatpak, so...
- if(QDir("/usr/bin").exists("icoextract")) {
- return "/usr/bin/icoextract";
- } else return "";
+ return QStandardPaths::findExecutable("icoextract");
}
QString NeroFS::GetIcoutils()
{
- // TODO: this is for flexibility in sandboxed environments(?)
- // idk what the "good" path should be for Flatpak, so...
- if(QDir("/usr/bin").exists("icotool")) {
- return "/usr/bin/icotool";
- } else return "";
+ return QStandardPaths::findExecutable("icotool");
}
QString NeroFS::GetUmU()
{
- // TODO: this is for flexibility in sandboxed environments(?)
- // idk what the "good" path should be for Flatpak, so...
- if(QDir("/usr/bin").exists("umu-run")) {
- return "/usr/bin/umu-run";
- } else return "";
+ return QStandardPaths::findExecutable("umu-run");
}
QString NeroFS::GetWinetricks(const QString &runner)
@@ -207,17 +195,13 @@
return protonsPath.path() + '/' + runner + "/protonfixes/winetricks";
else {
// fall back to system winetricks
- if(QDir("/usr/bin").exists("winetricks"))
- return "/usr/bin/winetricks";
- else return "";
+ return QStandardPaths::findExecutable("winetricks");
}
} else if(QDir(protonsPath.path() + '/' + currentRunner + "/protonfixes").exists("winetricks"))
return protonsPath.path() + '/' + currentRunner + "/protonfixes/winetricks";
else {
// fall back to system winetricks
- if(QDir("/usr/bin").exists("winetricks"))
- return "/usr/bin/winetricks";
- else return "";
+ return QStandardPaths::findExecutable("winetricks");
}
}
-11
View File
@@ -1,11 +0,0 @@
--- a/src/neroprefixsettings.cpp
+++ b/src/neroprefixsettings.cpp
@@ -598,7 +598,7 @@
tmpDir.mkdir("nero-manager");
QProcess process;
process.setWorkingDirectory(tmpDir.path()+"/nero-manager");
- process.start("/usr/bin/curl", { "-o", "bridge.zip", "-L", "https://github.com/EnderIce2/rpc-bridge/releases/latest/download/bridge.zip" });
+ process.start(QStandardPaths::findExecutable("curl"), { "-o", "bridge.zip", "-L", "https://github.com/EnderIce2/rpc-bridge/releases/latest/download/bridge.zip" });
printf("Downloading Discord RPC Bridge...\n");
NeroPrefixSettingsWindow::blockSignals(true);
+2 -8
View File
@@ -18,13 +18,13 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nero-umu";
version = "1.1.1";
version = "1.1.2";
src = fetchFromGitHub {
owner = "SeongGino";
repo = "Nero-umu";
tag = "v${finalAttrs.version}";
hash = "sha256-sX/Z/b5stauut8qg6IV/DdsCIkdx1N3+y1jwoXHr1LY=";
hash = "sha256-7Wmha/WsSmbEgD2Dw2izSRzw8ldIrWcRIdUMp2okHWY=";
};
#Replace quazip git submodule with pre-packaged quazip
@@ -62,12 +62,6 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "NERO_QT_VERSION" "Qt6")
];
#Fixes to be able to find binaries for nix
patches = [
./nerofs.patch
./neroprefix.patch
];
installPhase = ''
runHook preInstall
install -Dm755 "nero-umu" "$out/bin/nero-umu"