kopia lustrzana https://github.com/inkstitch/inkstitch
Merge 5eebedda18
into 2d18a061e3
commit
8273769683
|
@ -315,15 +315,55 @@ jobs:
|
|||
make dist
|
||||
env:
|
||||
BUILD: windows
|
||||
- name: upload-unsigned-exe
|
||||
id: upload-unsigned-exe
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inkstitch-windows32-exe
|
||||
path: |
|
||||
dist/inkstitch/bin/inkstitch.exe
|
||||
- name: Sign-exe
|
||||
id: Sign-exe
|
||||
uses: signpath/github-action-submit-signing-request@v1.1
|
||||
with:
|
||||
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
||||
organization-id: '6b880880-2af8-4cf3-a8e7-1b4977c593df'
|
||||
project-slug: 'inkstitch'
|
||||
signing-policy-slug: 'release-signing'
|
||||
github-artifact-id: '${{ steps.upload-unsigned-exe.outputs.artifact-id }}'
|
||||
wait-for-completion: true
|
||||
output-artifact-directory: 'signed-artifacts'
|
||||
- name: Copy signed exe to dist
|
||||
shell: bash
|
||||
run: |
|
||||
mv -f signed-artifacts/inkstitch.exe dist/inkstitch/bin/inkstitch.exe
|
||||
- shell: bash
|
||||
run: |
|
||||
bash bin/build-windows-installer
|
||||
env:
|
||||
BUILD: windows
|
||||
- name: upload-unsigned-installer
|
||||
id: upload-unsigned-installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inkstitch-windows32-installer
|
||||
path: artifacts
|
||||
- name: Sign-installer
|
||||
id: Sign-installer
|
||||
uses: signpath/github-action-submit-signing-request@v1.1
|
||||
with:
|
||||
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
||||
organization-id: '6b880880-2af8-4cf3-a8e7-1b4977c593df'
|
||||
project-slug: 'inkstitch'
|
||||
signing-policy-slug: 'release-signing'
|
||||
artifact-configuration-slug: 'windows-64bit-exe'
|
||||
github-artifact-id: '${{ steps.upload-unsigned-installer.outputs.artifact-id }}'
|
||||
wait-for-completion: true
|
||||
output-artifact-directory: 'signed-artifacts'
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inkstitch-windows32
|
||||
path: artifacts
|
||||
path: signed-artifacts
|
||||
windows64:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
|
@ -381,15 +421,55 @@ jobs:
|
|||
make dist
|
||||
env:
|
||||
BUILD: windows
|
||||
- name: upload-unsigned-exe
|
||||
id: upload-unsigned-exe
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inkstitch-windows64-exe
|
||||
path: |
|
||||
dist/inkstitch/bin/inkstitch.exe
|
||||
- name: Sign-exe
|
||||
id: Sign-exe
|
||||
uses: signpath/github-action-submit-signing-request@v1.1
|
||||
with:
|
||||
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
||||
organization-id: '6b880880-2af8-4cf3-a8e7-1b4977c593df'
|
||||
project-slug: 'inkstitch'
|
||||
signing-policy-slug: 'release-signing'
|
||||
github-artifact-id: '${{ steps.upload-unsigned-exe.outputs.artifact-id }}'
|
||||
wait-for-completion: true
|
||||
output-artifact-directory: 'signed-artifacts'
|
||||
- name: Copy signed exe to dist
|
||||
shell: bash
|
||||
run: |
|
||||
mv -f signed-artifacts/inkstitch.exe dist/inkstitch/bin/inkstitch.exe
|
||||
- shell: bash
|
||||
run: |
|
||||
bash bin/build-windows-installer
|
||||
env:
|
||||
BUILD: windows
|
||||
- name: upload-unsigned-installer
|
||||
id: upload-unsigned-installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inkstitch-windows64-installer
|
||||
path: artifacts
|
||||
- name: Sign-installer
|
||||
id: Sign-installer
|
||||
uses: signpath/github-action-submit-signing-request@v1.1
|
||||
with:
|
||||
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
||||
organization-id: '6b880880-2af8-4cf3-a8e7-1b4977c593df'
|
||||
project-slug: 'inkstitch'
|
||||
signing-policy-slug: 'release-signing'
|
||||
artifact-configuration-slug: 'windows-64bit-exe'
|
||||
github-artifact-id: '${{ steps.upload-unsigned-installer.outputs.artifact-id }}'
|
||||
wait-for-completion: true
|
||||
output-artifact-directory: 'signed-artifacts'
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inkstitch-windows64
|
||||
path: artifacts
|
||||
path: signed-artifacts
|
||||
macx86:
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
|
@ -568,13 +648,13 @@ jobs:
|
|||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: 'inkstitch-windows32'
|
||||
path: 'artifacts/'
|
||||
path: 'signed-artifacts/'
|
||||
if: always()
|
||||
- name: download windows64
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: 'inkstitch-windows64'
|
||||
path: 'artifacts/'
|
||||
path: 'signed-artifacts/'
|
||||
if: always()
|
||||
- name: download macx86
|
||||
uses: actions/download-artifact@v4
|
||||
|
@ -604,3 +684,5 @@ jobs:
|
|||
artifacts/*.tar.xz
|
||||
artifacts/*.sh
|
||||
artifacts/*.zip
|
||||
signed-artifacts/*.exe
|
||||
signed-artifacts/*.zip
|
||||
|
|
|
@ -24,7 +24,15 @@ iscc win/win_build.iss
|
|||
mv win/inkstitch.exe artifacts/inkstitch-${VERSION}-${OS}-${ARCH}.exe
|
||||
cd dist
|
||||
echo "Creating zip"
|
||||
if [[ -d "../signed-artifacts" ]]; then
|
||||
DIRECTORY="signed-artifacts"
|
||||
echo "Found signed artifacts"
|
||||
else
|
||||
DIRECTORY="artifacts"
|
||||
echo "No signed artifacts found, local build"
|
||||
fi
|
||||
|
||||
# The python zipfile command line utility can't handle directories
|
||||
# containing files with UTF-8 names on Windows, so we use 7-zip instead.
|
||||
7z a ../artifacts/inkstitch-${VERSION}-${OS}-${ARCH}.zip *
|
||||
7z a ../${DIRECTORY}/inkstitch-${VERSION}-${OS}-${ARCH}.zip *
|
||||
cd ..
|
||||
|
|
Ładowanie…
Reference in New Issue