mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-07 20:04:59 +00:00
feature: simple self-update implementation (#29)
This commit is contained in:
parent
86a1148148
commit
92e065feba
15 changed files with 494 additions and 7 deletions
|
@ -86,4 +86,5 @@
|
|||
<StreamGeometry x:Key="Icons.LayoutHorizontal">M875 117H149C109 117 75 151 75 192v640c0 41 34 75 75 75h725c41 0 75-34 75-75V192c0-41-34-75-75-75zM139 832V192c0-6 4-11 11-11h331v661H149c-6 0-11-4-11-11zm747 0c0 6-4 11-11 11H544v-661H875c6 0 11 4 11 11v640z</StreamGeometry>
|
||||
<StreamGeometry x:Key="Icons.LayoutVertical">M875 117H149C109 117 75 151 75 192v640c0 41 34 75 75 75h725c41 0 75-34 75-75V192c0-41-34-75-75-75zm-725 64h725c6 0 11 4 11 11v288h-747V192c0-6 4-11 11-11zm725 661H149c-6 0-11-4-11-11V544h747V832c0 6-4 11-11 11z</StreamGeometry>
|
||||
<StreamGeometry x:Key="Icons.SyntaxHighlight">M875 128h-725A107 107 0 0043 235v555A107 107 0 00149 896h725a107 107 0 00107-107v-555A107 107 0 00875 128zm-115 640h-183v-58l25-3c15 0 19-8 14-24l-22-61H419l-28 82 39 2V768h-166v-58l18-3c18-2 22-11 26-24l125-363-40-4V256h168l160 448 39 3zM506 340l-72 218h145l-71-218h-2z</StreamGeometry>
|
||||
<StreamGeometry x:Key="Icons.SoftwareUpdate">M900 287c40 69 60 144 60 225s-20 156-60 225c-40 69-94 123-163 163-69 40-144 60-225 60s-156-20-225-60c-69-40-123-94-163-163C84 668 64 593 64 512s20-156 60-225 94-123 163-163c69-40 144-60 225-60s156 20 225 60 123 94 163 163zM762 512c0-9-3-16-9-22L578 315l-44-44c-6-6-13-9-22-9s-16 3-22 9l-44 44-176 176c-6 6-9 13-9 22s3 16 9 22l44 44c6 6 13 9 22 9s16-3 22-9l92-92v269c0 9 3 16 9 22 6 6 13 9 22 9h62c8 0 16-3 22-9 6-6 9-13 9-22V486l92 92c6 6 13 9 22 9 8 0 16-3 22-9l44-44c6-6 9-13 9-22z</StreamGeometry>
|
||||
</ResourceDictionary>
|
||||
|
|
72
src/SourceGit/Resources/Locales.Designer.cs
generated
72
src/SourceGit/Resources/Locales.Designer.cs
generated
|
@ -2301,6 +2301,15 @@ namespace SourceGit.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Check for updates on startup.
|
||||
/// </summary>
|
||||
public static string Text_Preference_General_Check4UpdatesOnStartup {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.Preference.General.Check4UpdatesOnStartup", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Language.
|
||||
/// </summary>
|
||||
|
@ -3255,6 +3264,69 @@ namespace SourceGit.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Check for Updates ....
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to New version of this software is available: .
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate_Available {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate.Available", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Check for updates failed!.
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate_Error {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate.Error", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Download.
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate_GotoDownload {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate.GotoDownload", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Skip This Version.
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate_IgnoreThisVersion {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate.IgnoreThisVersion", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Software Update.
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate.Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to There are currently no updates available..
|
||||
/// </summary>
|
||||
public static string Text_SelfUpdate_UpToDate {
|
||||
get {
|
||||
return ResourceManager.GetString("Text.SelfUpdate.UpToDate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Squash HEAD Into Parent.
|
||||
/// </summary>
|
||||
|
|
|
@ -1302,4 +1302,28 @@
|
|||
<data name="Text.Preference.Appearance" xml:space="preserve">
|
||||
<value>APPEARANCE</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
||||
<value>Software Update</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Error" xml:space="preserve">
|
||||
<value>Check for updates failed!</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Available" xml:space="preserve">
|
||||
<value>New version of this software is available: </value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.GotoDownload" xml:space="preserve">
|
||||
<value>Download</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.IgnoreThisVersion" xml:space="preserve">
|
||||
<value>Skip This Version</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate" xml:space="preserve">
|
||||
<value>Check for Updates ...</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.UpToDate" xml:space="preserve">
|
||||
<value>There are currently no updates available.</value>
|
||||
</data>
|
||||
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
||||
<value>Check for updates on startup</value>
|
||||
</data>
|
||||
</root>
|
|
@ -1302,4 +1302,28 @@
|
|||
<data name="Text.Preference.Appearance" xml:space="preserve">
|
||||
<value>Appearance</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
||||
<value>Software Update</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Error" xml:space="preserve">
|
||||
<value>Check for updates failed!</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Available" xml:space="preserve">
|
||||
<value>New version of this software is available: </value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.GotoDownload" xml:space="preserve">
|
||||
<value>Download</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.IgnoreThisVersion" xml:space="preserve">
|
||||
<value>Skip This Version</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate" xml:space="preserve">
|
||||
<value>Check for Updates ...</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.UpToDate" xml:space="preserve">
|
||||
<value>There are currently no updates available.</value>
|
||||
</data>
|
||||
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
||||
<value>Check for updates on startup</value>
|
||||
</data>
|
||||
</root>
|
|
@ -1302,4 +1302,28 @@
|
|||
<data name="Text.Preference.Appearance" xml:space="preserve">
|
||||
<value>外观配置</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
||||
<value>软件更新</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Error" xml:space="preserve">
|
||||
<value>获取最新版本信息失败!</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.Available" xml:space="preserve">
|
||||
<value>检测到软件有版本更新: </value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.GotoDownload" xml:space="preserve">
|
||||
<value>下 载</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.IgnoreThisVersion" xml:space="preserve">
|
||||
<value>忽略此版本</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate" xml:space="preserve">
|
||||
<value>检测更新...</value>
|
||||
</data>
|
||||
<data name="Text.SelfUpdate.UpToDate" xml:space="preserve">
|
||||
<value>当前已是最新版本。</value>
|
||||
</data>
|
||||
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
||||
<value>启动时检测软件更新</value>
|
||||
</data>
|
||||
</root>
|
Loading…
Add table
Add a link
Reference in a new issue