-
Notifications
You must be signed in to change notification settings - Fork 5
New sign procedure #39
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b5e1d79
New sign procedure (WIP)
RobPasMue 824bffe
No specific path needed
RobPasMue dda3482
Attempt to sign
RobPasMue be3df35
Missing command
RobPasMue ae599e9
Adding stage
RobPasMue 388ffe5
Forcing it to run on ansys-internal
RobPasMue f99f195
Not necessary to install dotnet anymore
RobPasMue d1bc1cb
Running inside a container
RobPasMue ae09e26
Adding signtool label
RobPasMue a1db1bd
New trial
RobPasMue 92a7249
Access using token
RobPasMue ba84e1b
Update .github/workflows/ci_cd.yml
RobPasMue 0cf811f
Update .github/workflows/ci_cd.yml
RobPasMue 26f7039
Update .github/workflows/ci_cd.yml
RobPasMue e45cd4f
Update .github/workflows/ci_cd.yml
RobPasMue 40b0c8e
Properly implementing sign call
RobPasMue 95830b5
Deleting folder after uninstall
RobPasMue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,20 +108,6 @@ jobs: | |
| $ErrorActionPreference = "Stop" | ||
| makensis setup.nsi | ||
|
|
||
| - name: Sign application | ||
| shell: pwsh | ||
| run: | | ||
| $env:Path = "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\;" + $env:Path | ||
| $filename = get-ChildItem dist -recurse | where {$_.name -like "*Setup*"} | ||
| # Proceed to sign app | ||
| signtool sign /f src\ansys\tools\installer\assets\python-installer.pfx ` | ||
| /fd SHA256 ` | ||
| /tr http://timestamp.digicert.com ` | ||
| /td SHA256 ` | ||
| /p '${{ secrets.PYTHON_INSTALLER_CERT_PWD }}' ` | ||
| /d Ansys-Python-Manager ` | ||
| $filename | ||
|
|
||
| - name: List output | ||
| run: ls -R dist | ||
|
|
||
|
|
@@ -130,10 +116,48 @@ jobs: | |
| name: Python-Installer | ||
| path: dist/*Setup*.exe | ||
|
|
||
| sign-application: | ||
| name: Sign application | ||
| needs: [build-application] | ||
| runs-on: | ||
| group: ansys-internal | ||
| labels: [self-hosted, Windows, signtool] | ||
| steps: | ||
| - name: Checkout the SignTool | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| repository: pyansys/signtool-ansys-apps | ||
| token: ${{ secrets.SIGNTOOL_ACCESS_TOKEN }} | ||
|
|
||
| - uses: actions/download-artifact@v3 | ||
| with: | ||
| name: Python-Installer | ||
| path: signtool/installer | ||
|
|
||
| - name: List current structure | ||
| run: ls -R | ||
|
|
||
| - name: Sign application | ||
| working-directory: signtool | ||
| run: | | ||
| $filename = (get-ChildItem installer -recurse | where {$_.name -like "*Setup*"}).Name | ||
| $jobname = $filename -replace ".{4}$" | ||
| dotnet signclient.dll sign ` | ||
| -r [email protected] ` | ||
| -s '${{ secrets.SIGNTOOL_PWD }}' ` | ||
| -c AppSettings.json ` | ||
| -n $jobname ` | ||
| -i installer/$filename | ||
|
|
||
| - uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: Python-Installer | ||
| path: signtool/installer/*Setup*.exe | ||
|
|
||
RobPasMue marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| release: | ||
| name: Release application | ||
| if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
| needs: [build-application] | ||
| needs: [sign-application] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/download-artifact@v3 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.