Skip to content

Commit d366caf

Browse files
authored
Merge pull request ppy#45 from protheory8/change-update-info
Change AppImage filename pattern
2 parents 9636982 + 85b2aec commit d366caf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ public static void Main(string[] args)
231231
// create AppImage itself
232232
// gh-releases-zsync stands here for GitHub Releases ZSync, that is a way to check for updates
233233
// ppy|osu|latest stands for https://github.com/ppy/osu and get the latest release
234-
// osu-*x86_64.AppImage.zsync is wild card to get AppImage update information file, that is generated by the tool
234+
// osu!.x86_64.AppImage.zsync is AppImage update information file, that is generated by the tool
235235
// more information there https://docs.appimage.org/packaging-guide/optional/updates.html?highlight=update#using-appimagetool
236-
runCommand($"{stagingPath}/appimagetool.AppImage", $"\"{stagingPath}/osu!.AppDir\" -u \"gh-releases-zsync|ppy|osu|latest|osu!-*x86_64.AppImage.zsync\" \"{Path.Combine(Environment.CurrentDirectory, "releases")}/osu!-x86_64.AppImage\" --sign", false);
236+
runCommand($"{stagingPath}/appimagetool.AppImage", $"\"{stagingPath}/osu!.AppDir\" -u \"gh-releases-zsync|ppy|osu|latest|osu!.x86_64.AppImage.zsync\" \"{Path.Combine(Environment.CurrentDirectory, "releases")}/osu!.x86_64.AppImage\" --sign", false);
237237

238238
// mark finally the osu! AppImage as executable -> Don't compress it.
239-
runCommand("chmod", $"+x \"{Path.Combine(Environment.CurrentDirectory, "releases")}/osu!-x86_64.AppImage\"");
239+
runCommand("chmod", $"+x \"{Path.Combine(Environment.CurrentDirectory, "releases")}/osu!.x86_64.AppImage\"");
240240

241241
// copy update information
242-
File.Move(Path.Combine(Environment.CurrentDirectory, "osu!-x86_64.AppImage.zsync"), $"{releases_folder}/osu!-x86_64.AppImage.zsync", true);
242+
File.Move(Path.Combine(Environment.CurrentDirectory, "osu!.x86_64.AppImage.zsync"), $"{releases_folder}/osu!.x86_64.AppImage.zsync", true);
243243

244244
break;
245245
}

0 commit comments

Comments
 (0)