Skip to content

Commit 45a94f1

Browse files
committed
Add appinstaller for auto-updates
1 parent 5c5d1ae commit 45a94f1

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,19 @@ jobs:
6464
ref: 'refs/tags/v${{ steps.extractVersion.outputs.version }}'
6565
})
6666
67+
- name: Rename Auto-Update Installer
68+
shell: pwsh
69+
run: Rename-Item ./ContinuousDeployment/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_Test/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_x64.msix AutoUpdate.msix
70+
71+
- name: Rename Certificate
72+
shell: pwsh
73+
run: Rename-Item ./ContinuousDeployment/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_Test/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_x64.cer ContinuousDeployment.cer
74+
6775
- name: Create Release
6876
uses: softprops/action-gh-release@v1
6977
with:
7078
tag_name: v${{ steps.extractVersion.outputs.version }}
7179
files: |
72-
./ContinuousDeployment/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_Test/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_x64.msix
73-
./ContinuousDeployment/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_Test/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_x64.cer
80+
./ContinuousDeployment/ContinuousDeployment.appinstaller
81+
./ContinuousDeployment/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_Test/AutoUpdate.msix
82+
./ContinuousDeployment/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/ContinuousDeployment_${{ steps.extractVersion.outputs.version }}.0_Test/ContinuousDeployment.cer
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AppInstaller
3+
xmlns="http://schemas.microsoft.com/appx/appinstaller/2018"
4+
Version="1.0.0.0"
5+
Uri="https://github.com/SingletonSean/maui-tutorials/releases/latest/download/ContinuousDeployment.appinstaller">
6+
<MainPackage
7+
Name="SingletonSean.ContinuousDeployment"
8+
Publisher="CN=SingletonSean"
9+
Version="1.3.0.0"
10+
ProcessorArchitecture="x64"
11+
Uri="https://github.com/SingletonSean/maui-tutorials/releases/latest/download/AutoUpdate.msix" />
12+
<UpdateSettings>
13+
<OnLaunch HoursBetweenUpdateChecks="0" />
14+
</UpdateSettings>
15+
</AppInstaller>

ContinuousDeployment/ContinuousDeployment.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
<ApplicationTitle>ContinuousDeployment</ApplicationTitle>
2525

2626
<!-- App Identifier -->
27-
<ApplicationId>com.companyname.continuousdeployment</ApplicationId>
27+
<ApplicationId>SingletonSean.ContinuousDeployment</ApplicationId>
2828

2929
<!-- Versions -->
30-
<ApplicationDisplayVersion>1.2.0</ApplicationDisplayVersion>
30+
<ApplicationDisplayVersion>1.3.0</ApplicationDisplayVersion>
3131

3232
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
3333
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>

0 commit comments

Comments
 (0)