Skip to content

Commit 4f65ce9

Browse files
iljukhaputdimkanovikov
authored andcommitted
Add MSIX packaging
1 parent 976f240 commit 4f65ce9

9 files changed

+70
-0
lines changed

.github/workflows/build_starc_windows.yml

+43
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,33 @@ jobs:
9090
files: build/windows/files_64
9191
dest: build/windows/starc-64.zip
9292

93+
- name: Update manifest
94+
shell: pwsh
95+
env:
96+
APPXMANIFEST_PATH: build\windows\msix\AppxManifest.xml
97+
BUILD_VERSION: ${{ env.APP_VERSION }}.${{ env.DEV_BUILD }}
98+
run: |
99+
$xml = [xml](Get-Content $env:APPXMANIFEST_PATH)
100+
$xml.Package.Identity.Version = $env:BUILD_VERSION
101+
$xml.save($env:APPXMANIFEST_PATH)
102+
103+
- name: Build MSIX package
104+
shell: pwsh
105+
run: |
106+
New-Item -ItemType Directory -Path build/windows/files_64/images
107+
Copy-Item -Path build/windows/msix/visual-elements/* -Destination build/windows/files_64/images -Recurse
108+
cp build/windows/msix/AppxManifest.xml build/windows/files_64
109+
$env:PATH = $env:PATH + ";C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64"
110+
makeappx.exe pack /d build/windows/files_64 /p build/windows/starc-package-64.msix
111+
93112
- name: Collect artifacts
94113
uses: actions/upload-artifact@v4
95114
with:
96115
name: windows_64 packages
97116
path: |
98117
build/windows/starc-setup-64.exe
99118
build/windows/starc-64.zip
119+
build/windows/starc-package-64.msix
100120
101121
- name: Publish artifacts to the dev stream and notify clients
102122
if: startsWith(github.ref, 'refs/tags/') != true
@@ -125,6 +145,7 @@ jobs:
125145
files: |
126146
build/windows/starc-setup-64.exe
127147
build/windows/starc-64.zip
148+
build/windows/starc-package-64.msix
128149
129150
- name: Notify clients that stable release published
130151
if: startsWith(github.ref, 'refs/tags/')
@@ -208,13 +229,34 @@ jobs:
208229
files: build/windows/files_32
209230
dest: build/windows/starc-32.zip
210231

232+
- name: Update manifest
233+
shell: pwsh
234+
env:
235+
APPXMANIFEST_PATH: build\windows\msix\AppxManifest.xml
236+
BUILD_VERSION: ${{ env.APP_VERSION }}.${{ env.DEV_BUILD }}
237+
run: |
238+
$xml = [xml](Get-Content $env:APPXMANIFEST_PATH)
239+
$xml.Package.Identity.Version = $env:BUILD_VERSION
240+
$xml.save($env:APPXMANIFEST_PATH)
241+
242+
- name: Build MSIX package
243+
shell: pwsh
244+
run: |
245+
New-Item -ItemType Directory -Path build/windows/files_32/images
246+
Copy-Item -Path build/windows/msix/visual-elements/* -Destination build/windows/files_32/images -Recurse
247+
cp build/windows/msix/AppxManifest.xml build/windows/files_32
248+
$env:PATH = $env:PATH + ";C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86"
249+
makeappx.exe pack /d build/windows/files_32 /p build/windows/starc-package-32.msix
250+
251+
211252
- name: Collect artifacts
212253
uses: actions/upload-artifact@v4
213254
with:
214255
name: windows_32 packages
215256
path: |
216257
build/windows/starc-setup-32.exe
217258
build/windows/starc-32.zip
259+
build/windows/starc-package-32.msix
218260
219261
- name: Publish artifacts to the dev stream and notify clients
220262
if: startsWith(github.ref, 'refs/tags/') != true
@@ -243,6 +285,7 @@ jobs:
243285
files: |
244286
build/windows/starc-setup-32.exe
245287
build/windows/starc-32.zip
288+
build/windows/starc-package-32.msix
246289
247290
- name: Notify clients that stable release published
248291
if: startsWith(github.ref, 'refs/tags/')

build/windows/msix/AppxManifest.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap rescap">
3+
<Identity Name="Starc" Publisher="CN=StoryApps" Version="" />
4+
<Properties>
5+
<DisplayName>Starc</DisplayName>
6+
<PublisherDisplayName>StoryApps</PublisherDisplayName>
7+
<Logo>images\StoreLogo.png</Logo>
8+
</Properties>
9+
<Dependencies>
10+
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
11+
</Dependencies>
12+
<Resources>
13+
<Resource Language="en-us" />
14+
</Resources>
15+
<Applications>
16+
<Application Id="App" Executable="starcapp.exe" EntryPoint="Windows.FullTrustApplication">
17+
<uap:VisualElements DisplayName="Starc" Description="Starc" BackgroundColor="transparent" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png">
18+
<uap:DefaultTile Wide310x150Logo="images\Wide310x150Logo.png" Square71x71Logo="images\SmallTile.png" Square310x310Logo="images\LargeTile.png" />
19+
<uap:SplashScreen Image="images\SplashScreen.png" />
20+
</uap:VisualElements>
21+
</Application>
22+
</Applications>
23+
<Capabilities>
24+
<Capability Name="internetClient" />
25+
<rescap:Capability Name="runFullTrust" />
26+
</Capabilities>
27+
</Package>
8.21 KB
Loading
1.92 KB
Loading
Loading
Loading
Loading
2.61 KB
Loading
Loading

0 commit comments

Comments
 (0)