improve auto updater now just needs 1 exe

This commit is contained in:
Nayla Hanegan 2023-06-23 15:25:44 -04:00
commit e575a7a3d5
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D
4 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,3 @@
@echo off
"Updater.exe" /S

View file

@ -1,10 +1,10 @@
[General]
AppName=Dolphin MPN
AppVersion=1
AppVersion=6
GUID=
MainExe=Dolphin-MPN.exe
ReadMethod=2
UpdateURL=http://cdn.marioparty.online/update-dolphin.txt
UpdateURL=https://pastebin.com/raw/41eE6A01
AllUsers=0
Admin=0
x64=0

View file

@ -153,6 +153,11 @@ int main(int argc, char* argv[])
QCoreApplication::setOrganizationDomain(QStringLiteral("dolphin-emu.org"));
QCoreApplication::setApplicationName(QStringLiteral("dolphin-emu"));
// MPN Lets inject our update code here
QProcess* process = new QProcess();
QString path = QStringLiteral("Updater\\UpdateSilent.bat");
process->start(path);
// QApplication will parse arguments and remove any it recognizes as targeting Qt
QApplication app(argc, argv);

View file

@ -142,6 +142,8 @@
#undef None
#endif
#include <qprocess.h>
#if defined(__unix__) || defined(__unix) || defined(__APPLE__)
void MainWindow::OnSignal()
{