Skip to content

Commit

Permalink
Because tags can't be duplicated so using old way, so this should be …
Browse files Browse the repository at this point in the history
…first release for auto update support.
  • Loading branch information
akbaryahya committed Aug 29, 2022
1 parent fd99a65 commit eb61d80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "nightly"
release_name: ${{steps.get-version.outputs.assembly-version}}
tag_name: ${{steps.get-version.outputs.assembly-version}}
release_name: Nightly ${{steps.get-version.outputs.assembly-version}}
draft: false
body: |
Update ${{steps.get-version.outputs.assembly-version}} Available
${{ github.event.head_commit.message }}
prerelease: false

Expand Down
7 changes: 3 additions & 4 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ public void CheckUpdate()
var GetDataUpdate = API.GetUpdate();
if (GetDataUpdate != null)
{
// If versions are not same, try asking user to update?
var name_version = GetDataUpdate.name; // version
var judul = GetDataUpdate.tag_name; // is dev or nightly
var judul = GetDataUpdate.name; // is dev or nightly or name update
var name_version = GetDataUpdate.tag_name; // version name
var infobody = GetDataUpdate.body; // info

var version1 = new Version(name_version);
Expand All @@ -153,7 +152,7 @@ public void CheckUpdate()
{
// versi 1 lebih besar
Set_Version.Text = "Version: " + ver + " (New Update: " + name_version + " )";
var tes = MessageBox.Show(infobody, "Version " + judul + " Available", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
var tes = MessageBox.Show(infobody, judul, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (tes == DialogResult.Yes)
{
var url_dl = "";
Expand Down

0 comments on commit eb61d80

Please sign in to comment.