Skip to content

Commit

Permalink
修复updatePackage目录结构
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Dec 25, 2024
1 parent 531a194 commit 7dee2fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,20 @@ jobs:
# Move .msix for upload to artifacts
mv ${{ env.Packages_Directory }}\*\*.msix "$packageName.msix"
- name: Create dependencies archive
if: ${{ inputs.output_dependencies }}
run: |
# Create dependencies archive
Compress-Archive -Path "${{ env.Packages_Directory }}\*\Dependencies\${{ matrix.architecture }}\*" -DestinationPath "$directory\dependencies-${{ matrix.architecture }}.zip"
- name: Upload dependencies archive
if: ${{ inputs.output_dependencies }}
uses: actions/upload-artifact@v4
with:
name: dependencies-${{ matrix.architecture }}
path: "${{ env.Packages_Directory }}/**/Dependencies/${{ matrix.architecture }}/*.*"

path: "${{ steps.preparation.outputs.directory }}/dependencies-${{ matrix.architecture }}.zip"
# Decode the base64 encoded pfx and sign the package
- name: Sign .msix
if: ${{ inputs.create_package }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ jobs:

- name: Create x64 update package
run: |
cd ${{ github.workspace }}/updatePackage-x64/dependencies
unzip -j updatePackage-x64.zip -d ./
rm updatePackage-x64.zip
cd ${{ github.workspace }}/updatePackage-x64
mv *.msix msix-x64.msix
Expand All @@ -132,6 +136,10 @@ jobs:
- name: Create arm64 update package
run: |
cd ${{ github.workspace }}/updatePackage-arm64/dependencies
unzip -j updatePackage-arm64.zip -d ./
rm updatePackage-arm64.zip
cd ${{ github.workspace }}/updatePackage-arm64
mv *.msix msix-arm64.msix
zip -r ../updatePackage-arm64.zip ./*
Expand Down

0 comments on commit 7dee2fe

Please sign in to comment.