Skip to content

Commit 2182122

Browse files
committed
Fixed a bug that meant the AlphaLive Updater app
was never being updated on a users system!
1 parent b4e0f1b commit 2182122

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Source/GUI Classes/Sub-Views/SoftwareUpdateComponent.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ void SoftwareUpdateComponent::run()
133133
//or use th chmod() function as documented here:
134134
//http://www.manpagez.com/man/2/chmod/osx-10.4.php
135135

136-
File exe1 (updateDirectory.getFullPathName() + "/Mac Files/AlphaLive.app/Contents/MacOS/AlphaLive");
137-
File exe2 (updateDirectory.getFullPathName() + "/Mac Files/AlphaLive Updater.app/Contents/MacOS/AlphaLive Updater");
138-
File exe3 (updateDirectory.getFullPathName() + "/Mac Files/firmwareUpdater");
136+
File exe1 (updateDirectory.getFullPathName() + File::separatorString + "Mac Files/AlphaLive.app/Contents/MacOS/AlphaLive");
137+
File exe2 (updateDirectory.getFullPathName() + File::separatorString + "Mac Files/AlphaLive Updater.app/Contents/MacOS/AlphaLive Updater");
138+
File exe3 (updateDirectory.getFullPathName() + File::separatorString + "Mac Files/firmwareUpdater");
139139

140140
chmod (exe1.getFullPathName().toUTF8(), S_IRWXO | S_IRWXU | S_IRWXG);
141141
if (exe2.exists())
@@ -149,11 +149,11 @@ void SoftwareUpdateComponent::run()
149149
//==== Move the new version of AlphaLive Updater if there is one ====
150150

151151
#if JUCE_MAC
152-
File newUpdaterFile (updateDirectory.getFullPathName() + File::separatorString + "/Mac Files/AlphaLive Updater");
152+
File newUpdaterFile (updateDirectory.getFullPathName() + File::separatorString + "Mac Files/AlphaLive Updater.app");
153153

154154
if (newUpdaterFile.exists())
155155
{
156-
File oldUpdaterFile (alphaLiveDirectory.getFullPathName() + File::separatorString + "Application Data/AlphaLive Updater");
156+
File oldUpdaterFile (alphaLiveDirectory.getFullPathName() + File::separatorString + "Application Data/AlphaLive Updater.app");
157157
oldUpdaterFile.deleteRecursively();
158158
std::cout << newUpdaterFile.copyFileTo(oldUpdaterFile) << std::endl;
159159
}
@@ -162,7 +162,7 @@ void SoftwareUpdateComponent::run()
162162
#if JUCE_WINDOWS
163163
if (SystemStats::isOperatingSystem64Bit())
164164
{
165-
File newUpdaterFile (updateDirectory.getFullPathName() + File::separatorString + "/Win64 Files/AlphaLive Updater.exe");
165+
File newUpdaterFile (updateDirectory.getFullPathName() + File::separatorString + "Win64 Files/AlphaLive Updater.exe");
166166

167167
if (newUpdaterFile.exists())
168168
{
@@ -173,7 +173,7 @@ void SoftwareUpdateComponent::run()
173173
}
174174
else
175175
{
176-
File newUpdaterFile (updateDirectory.getFullPathName() + File::separatorString + "/Win32 Files/AlphaLive Updater.exe");
176+
File newUpdaterFile (updateDirectory.getFullPathName() + File::separatorString + "Win32 Files/AlphaLive Updater.exe");
177177

178178
if (newUpdaterFile.exists())
179179
{

0 commit comments

Comments
 (0)