Skip to content

Commit 527a507

Browse files
committed
test selfsigned msix
1 parent 991ba39 commit 527a507

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

.craft.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[General]
22
ShallowClone = False
3+
CraftUrl = https://github.com/flimmy/craft-copy.git
34

45
# Variables defined here override the default value
56
# The variable names are case-sensitive

.github/workflows/main.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- 'stable-[0-9]+.[0-9]+'
88
- 'stable-[0-9]+.[0-9]+.[0-9]+'
9+
- 'binary_release_testing'
910
pull_request:
1011
workflow_dispatch:
1112
inputs:
@@ -42,12 +43,12 @@ jobs:
4243
- target: windows-cl-msvc2022-x86_64
4344
os: windows-2022
4445
container:
45-
- target: macos-clang-arm64
46-
os: macos-latest
47-
container:
48-
- target: linux-gcc-x86_64
49-
os: ubuntu-latest
50-
container: invent-registry.kde.org/sysadmin/ci-images/craft-appimage-alma9:latest
46+
# - target: macos-clang-arm64
47+
# os: macos-latest
48+
# container:
49+
# - target: linux-gcc-x86_64
50+
# os: ubuntu-latest
51+
# container: invent-registry.kde.org/sysadmin/ci-images/craft-appimage-alma9:latest
5152

5253
name: ${{ matrix.target }}
5354

@@ -195,6 +196,12 @@ jobs:
195196
run: |
196197
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package --options "[Packager]PackageType=AppxPackager" --options "[Packager]Destination=${{ github.workspace }}/appx/" opencloud/opencloud-desktop
197198
199+
- name: Package Appx Sideload
200+
if: ${{ matrix.os == 'windows-latest' && github.event_name != 'pull_request' && github.ref == 'refs/heads/binary_release_testing' }}
201+
run: |
202+
New-SelfSignedCertificate -Type CodeSigningCert -Subject "CN=OpenCloud Desktop Self-Signed" -CertStoreLocation "Cert:\CurrentUser\My"
203+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package --options "[Packager]PackageType=AppxPackager" --options "[Packager]Destination=${{ github.workspace }}/appx-sideload/" --options "[CodeSigning]Enabled=True" --options "[CodeSigning]Protected=False" --options "[CodeSigning]CommonName=OpenCloud Desktop Self-Signed" opencloud/opencloud-desktop
204+
198205
- name: Prepare artifacts
199206
run: |
200207
Copy-Item "${home}/craft/binaries/*" "${env:GITHUB_WORKSPACE}/binaries/" -ErrorAction SilentlyContinue
@@ -219,3 +226,11 @@ jobs:
219226
with:
220227
name: ${{ matrix.target }}-appx-${{ github.run_number }}
221228
path: ${{ github.workspace }}/appx/*
229+
230+
- name: Upload appx-sideload
231+
if: ${{ matrix.os == 'windows-latest' && github.event_name != 'pull_request' && github.ref == 'refs/heads/binary_release_testing' }}
232+
uses: actions/upload-artifact@v7
233+
with:
234+
name: ${{ matrix.target }}-appx-${{ github.run_number }}
235+
path: ${{ github.workspace }}/appx-sideload/*
236+

0 commit comments

Comments
 (0)