in mac version, download the update file using a browser
not possible to update executable inside app packages anymore TODO: update website to serve .dmg link instead
This commit is contained in:
parent
e8b4256503
commit
87f17fd7c3
@ -1650,7 +1650,11 @@ void GameController::NotifyUpdateAvailable(Client * sender)
|
|||||||
{
|
{
|
||||||
UpdateInfo info = Client::Ref().GetUpdateInfo();
|
UpdateInfo info = Client::Ref().GetUpdateInfo();
|
||||||
StringBuilder updateMessage;
|
StringBuilder updateMessage;
|
||||||
|
#ifndef MACOSX
|
||||||
updateMessage << "Are you sure you want to run the updater? Please save any changes before updating.\n\nCurrent version:\n ";
|
updateMessage << "Are you sure you want to run the updater? Please save any changes before updating.\n\nCurrent version:\n ";
|
||||||
|
#else
|
||||||
|
updateMessage << "Click \"Continue\" to download the latest version from our website.\n\nCurrent version:\n ";
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SNAPSHOT
|
#ifdef SNAPSHOT
|
||||||
updateMessage << "Snapshot " << SNAPSHOT_ID;
|
updateMessage << "Snapshot " << SNAPSHOT_ID;
|
||||||
@ -1706,6 +1710,17 @@ void GameController::RemoveNotification(Notification * notification)
|
|||||||
|
|
||||||
void GameController::RunUpdater()
|
void GameController::RunUpdater()
|
||||||
{
|
{
|
||||||
|
#ifndef MACOSX
|
||||||
Exit();
|
Exit();
|
||||||
new UpdateActivity();
|
new UpdateActivity();
|
||||||
|
#else
|
||||||
|
|
||||||
|
#ifdef UPDATESERVER
|
||||||
|
ByteString file = ByteString::Build("https://", UPDATESERVER, Client::Ref().GetUpdateInfo().File);
|
||||||
|
#else
|
||||||
|
ByteString file = ByteString::Build("https://", SERVER, Client::Ref().GetUpdateInfo().File);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Platform::OpenURI(file);
|
||||||
|
#endif // MACOSX
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user