Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MSIX packaging #286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build_starc_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,33 @@ jobs:
files: build/windows/files_64
dest: build/windows/starc-64.zip

- name: Update manifest
shell: pwsh
env:
APPXMANIFEST_PATH: build\windows\msix\AppxManifest.xml
BUILD_VERSION: ${{ env.APP_VERSION }}.${{ env.DEV_BUILD }}
run: |
$xml = [xml](Get-Content $env:APPXMANIFEST_PATH)
$xml.Package.Identity.Version = $env:BUILD_VERSION
$xml.save($env:APPXMANIFEST_PATH)

- name: Build MSIX package
shell: pwsh
run: |
New-Item -ItemType Directory -Path build/windows/files_64/images
Copy-Item -Path build/windows/msix/visual-elements/* -Destination build/windows/files_64/images -Recurse
cp build/windows/msix/AppxManifest.xml build/windows/files_64
$env:PATH = $env:PATH + ";C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64"
makeappx.exe pack /d build/windows/files_64 /p build/windows/starc-package-64.msix

- name: Collect artifacts
uses: actions/upload-artifact@v4
with:
name: windows_64 packages
path: |
build/windows/starc-setup-64.exe
build/windows/starc-64.zip
build/windows/starc-package-64.msix

- name: Publish artifacts to the dev stream and notify clients
if: startsWith(github.ref, 'refs/tags/') != true
Expand Down Expand Up @@ -125,6 +145,7 @@ jobs:
files: |
build/windows/starc-setup-64.exe
build/windows/starc-64.zip
build/windows/starc-package-64.msix

- name: Notify clients that stable release published
if: startsWith(github.ref, 'refs/tags/')
Expand Down Expand Up @@ -208,13 +229,34 @@ jobs:
files: build/windows/files_32
dest: build/windows/starc-32.zip

- name: Update manifest
shell: pwsh
env:
APPXMANIFEST_PATH: build\windows\msix\AppxManifest.xml
BUILD_VERSION: ${{ env.APP_VERSION }}.${{ env.DEV_BUILD }}
run: |
$xml = [xml](Get-Content $env:APPXMANIFEST_PATH)
$xml.Package.Identity.Version = $env:BUILD_VERSION
$xml.save($env:APPXMANIFEST_PATH)

- name: Build MSIX package
shell: pwsh
run: |
New-Item -ItemType Directory -Path build/windows/files_32/images
Copy-Item -Path build/windows/msix/visual-elements/* -Destination build/windows/files_32/images -Recurse
cp build/windows/msix/AppxManifest.xml build/windows/files_32
$env:PATH = $env:PATH + ";C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86"
makeappx.exe pack /d build/windows/files_32 /p build/windows/starc-package-32.msix


- name: Collect artifacts
uses: actions/upload-artifact@v4
with:
name: windows_32 packages
path: |
build/windows/starc-setup-32.exe
build/windows/starc-32.zip
build/windows/starc-package-32.msix

- name: Publish artifacts to the dev stream and notify clients
if: startsWith(github.ref, 'refs/tags/') != true
Expand Down Expand Up @@ -243,6 +285,7 @@ jobs:
files: |
build/windows/starc-setup-32.exe
build/windows/starc-32.zip
build/windows/starc-package-32.msix

- name: Notify clients that stable release published
if: startsWith(github.ref, 'refs/tags/')
Expand Down
27 changes: 27 additions & 0 deletions build/windows/msix/AppxManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Identity Name="Starc" Publisher="CN=StoryApps" Version="" />
<Properties>
<DisplayName>Starc</DisplayName>
<PublisherDisplayName>StoryApps</PublisherDisplayName>
<Logo>images\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
</Dependencies>
<Resources>
<Resource Language="en-us" />
</Resources>
<Applications>
<Application Id="App" Executable="starcapp.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="Starc" Description="Starc" BackgroundColor="transparent" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="images\Wide310x150Logo.png" Square71x71Logo="images\SmallTile.png" Square310x310Logo="images\LargeTile.png" />
<uap:SplashScreen Image="images\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
Binary file added build/windows/msix/visual-elements/LargeTile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/windows/msix/visual-elements/SmallTile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/windows/msix/visual-elements/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading