Skip to content

Commit 62a62a9

Browse files
committed
fix: update version display and app update paths to Iniationware
- Fixed About dialog to display Iniationware version format (2025.34-IW.4) - Updated release notes URL to point to Iniationware GitHub releases - Changed source code URL to Iniationware repository - Updated self-update to fetch from Iniationware GitHub releases API - Changed download link to Iniationware releases page - Updated tooltip in About dialog to show correct repository URL This ensures the app properly identifies as Iniationware edition and checks for updates from the correct repository.
1 parent 1c31c79 commit 62a62a9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/App.axaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,10 @@ private void Check4Update(bool manually = false)
620620
{
621621
try
622622
{
623-
// Fetch latest release information.
623+
// Fetch latest release information from Iniationware GitHub releases
624624
using var client = new HttpClient() { Timeout = TimeSpan.FromSeconds(5) };
625-
var data = await client.GetStringAsync("https://sourcegit-scm.github.io/data/version.json");
625+
client.DefaultRequestHeaders.Add("User-Agent", "SourceGit-Iniationware");
626+
var data = await client.GetStringAsync("https://api.github.com/repos/Iniationware/sourcegit/releases/latest");
626627

627628
// Parse JSON into Models.Version.
628629
var ver = JsonSerializer.Deserialize(data, JsonCodeGen.Default.Version);

src/Views/About.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<Path Width="16" Height="16" Data="{StaticResource Icons.Remotes}"/>
6565
</Button>
6666

67-
<Button Width="18" Height="18" Margin="8,0,0,0" Classes="icon_button" Click="OnVisitSourceCode" ToolTip.Tip="https://github.com/sourcegit-scm/sourcegit">
67+
<Button Width="18" Height="18" Margin="8,0,0,0" Classes="icon_button" Click="OnVisitSourceCode" ToolTip.Tip="https://github.com/Iniationware/sourcegit">
6868
<Path Width="16" Height="16" Data="{StaticResource Icons.GitHub}"/>
6969
</Button>
7070
</StackPanel>

src/Views/About.axaml.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ public About()
1010
CloseOnESC = true;
1111
InitializeComponent();
1212

13-
var assembly = Assembly.GetExecutingAssembly();
14-
var ver = assembly.GetName().Version;
15-
if (ver != null)
16-
TxtVersion.Text = $"{ver.Major}.{ver.Minor:D2}";
13+
// Use hardcoded Iniationware version for now
14+
TxtVersion.Text = "2025.34-IW.4";
1715

16+
var assembly = Assembly.GetExecutingAssembly();
1817
var copyright = assembly.GetCustomAttribute<AssemblyCopyrightAttribute>();
1918
if (copyright != null)
2019
TxtCopyright.Text = copyright.Copyright;
2120
}
2221

2322
private void OnVisitReleaseNotes(object _, RoutedEventArgs e)
2423
{
25-
Native.OS.OpenBrowser($"https://github.com/sourcegit-scm/sourcegit/releases/tag/v{TxtVersion.Text}");
24+
Native.OS.OpenBrowser($"https://github.com/Iniationware/sourcegit/releases/tag/{TxtVersion.Text}");
2625
e.Handled = true;
2726
}
2827

@@ -34,7 +33,7 @@ private void OnVisitWebsite(object _, RoutedEventArgs e)
3433

3534
private void OnVisitSourceCode(object _, RoutedEventArgs e)
3635
{
37-
Native.OS.OpenBrowser("https://github.com/sourcegit-scm/sourcegit");
36+
Native.OS.OpenBrowser("https://github.com/Iniationware/sourcegit");
3837
e.Handled = true;
3938
}
4039
}

src/Views/SelfUpdate.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private void CloseWindow(object _1, RoutedEventArgs _2)
7777

7878
private void GotoDownload(object _, RoutedEventArgs e)
7979
{
80-
Native.OS.OpenBrowser("https://github.com/sourcegit-scm/sourcegit/releases/latest");
80+
Native.OS.OpenBrowser("https://github.com/Iniationware/sourcegit/releases/latest");
8181
e.Handled = true;
8282
}
8383

0 commit comments

Comments
 (0)