Skip to content

Commit

Permalink
Commented windows store
Browse files Browse the repository at this point in the history
Packaged apps cannot create symlinks
  • Loading branch information
mattiascibien committed Nov 29, 2021
1 parent 5e47dbf commit 906c054
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,63 +98,63 @@ jobs:
path: |
./GodotHub/bin/Release/*.nupkg
package-windows-store-msix:
needs: build-and-test
runs-on: windows-2022
env:
Solution_Name: GodotHub.sln
Wap_Project_Directory: GodotHub.WindowsStore
Wap_Project_Path: GodotHub.WindowsStore\GodotHub.WindowsStore.wapproj
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
with:
useConfigFile: true
- name: Update manifest version
run: |
[xml]$manifest = get-content ".\$env:Wap_Project_Directory\Package.appxmanifest"
$manifest.Package.Identity.Version = "${{ steps.gitversion.outputs.AssemblySemVer }}"
$manifest.save(".\$env:Wap_Project_Directory\Package.appxmanifest")
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
with:
vs-version: '[17.0,18.0)'
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier="win-x64"
env:
Configuration: Release
- name: Decode the pfx
run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
$certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
- name: Create the app package
run: msbuild $env:Wap_Project_Path /p:Platform=$env:TargetPlatform /p:AppxBundlePlatforms=$env:Appx_Bundle_Platforms /p:Configuration=$env:Configuration /p:SolutionDir=. /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword="${{ secrets.Pfx_Key }}"
env:
Appx_Bundle: Always
TargetPlatform: x64
Appx_Bundle_Platforms: x64
Appx_Package_Build_Mode: StoreUpload
Configuration: Release
- name: Remove the pfx
run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: MSIX Package
path: ${{ env.Wap_Project_Directory }}\AppPackages
# package-windows-store-msix:
# needs: build-and-test
# runs-on: windows-2022
# env:
# Solution_Name: GodotHub.sln
# Wap_Project_Directory: GodotHub.WindowsStore
# Wap_Project_Path: GodotHub.WindowsStore\GodotHub.WindowsStore.wapproj
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: 6.0.x
# - name: Install GitVersion
# uses: gittools/actions/gitversion/setup@v0.9.7
# with:
# versionSpec: '5.x'
# - name: Determine Version
# id: gitversion
# uses: gittools/actions/gitversion/execute@v0.9.7
# with:
# useConfigFile: true
# - name: Update manifest version
# run: |
# [xml]$manifest = get-content ".\$env:Wap_Project_Directory\Package.appxmanifest"
# $manifest.Package.Identity.Version = "${{ steps.gitversion.outputs.AssemblySemVer }}"
# $manifest.save(".\$env:Wap_Project_Directory\Package.appxmanifest")
# - name: Setup MSBuild.exe
# uses: microsoft/setup-msbuild@v1.1
# with:
# vs-version: '[17.0,18.0)'
# - name: Restore the application
# run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier="win-x64"
# env:
# Configuration: Release
# - name: Decode the pfx
# run: |
# $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
# $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
# [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
# - name: Create the app package
# run: msbuild $env:Wap_Project_Path /p:Platform=$env:TargetPlatform /p:AppxBundlePlatforms=$env:Appx_Bundle_Platforms /p:Configuration=$env:Configuration /p:SolutionDir=. /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword="${{ secrets.Pfx_Key }}"
# env:
# Appx_Bundle: Always
# TargetPlatform: x64
# Appx_Bundle_Platforms: x64
# Appx_Package_Build_Mode: StoreUpload
# Configuration: Release
# - name: Remove the pfx
# run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
# - name: Upload build artifacts
# uses: actions/upload-artifact@v2
# with:
# name: MSIX Package
# path: ${{ env.Wap_Project_Directory }}\AppPackages

release:
needs: [package-standalone, package-dotnet-tool]
Expand Down

0 comments on commit 906c054

Please sign in to comment.