trxasviewer 0.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- trxasviewer-0.6.1/.editorconfig +21 -0
- trxasviewer-0.6.1/.github/ISSUE_TEMPLATE.md +15 -0
- trxasviewer-0.6.1/.github/workflows/autobuild.yml +55 -0
- trxasviewer-0.6.1/.github/workflows/build-releases.yml +375 -0
- trxasviewer-0.6.1/.gitignore +115 -0
- trxasviewer-0.6.1/CLAUDE.md +138 -0
- trxasviewer-0.6.1/LICENSE +182 -0
- trxasviewer-0.6.1/PKG-INFO +150 -0
- trxasviewer-0.6.1/README.rst +99 -0
- trxasviewer-0.6.1/docs/Makefile +20 -0
- trxasviewer-0.6.1/docs/conf.py +164 -0
- trxasviewer-0.6.1/docs/index.rst +17 -0
- trxasviewer-0.6.1/docs/installation.rst +51 -0
- trxasviewer-0.6.1/docs/make.bat +36 -0
- trxasviewer-0.6.1/docs/readme.rst +1 -0
- trxasviewer-0.6.1/docs/superpowers/plans/2026-07-06-mvc-refactor.md +1750 -0
- trxasviewer-0.6.1/docs/superpowers/plans/2026-08-28-executable-release-builds.md +1383 -0
- trxasviewer-0.6.1/docs/superpowers/specs/2026-07-06-mvc-refactor-design.md +234 -0
- trxasviewer-0.6.1/docs/superpowers/specs/2026-08-28-executable-release-builds-design.md +276 -0
- trxasviewer-0.6.1/docs/usage.rst +7 -0
- trxasviewer-0.6.1/examples/analyze_trxas.py +255 -0
- trxasviewer-0.6.1/packaging/entrypoint.py +12 -0
- trxasviewer-0.6.1/packaging/icon.ico +0 -0
- trxasviewer-0.6.1/packaging/icon.png +0 -0
- trxasviewer-0.6.1/packaging/linux/AppRun +3 -0
- trxasviewer-0.6.1/packaging/linux/build-appimage.sh +51 -0
- trxasviewer-0.6.1/packaging/linux/trxasviewer.desktop +8 -0
- trxasviewer-0.6.1/packaging/macos/entitlements.plist +10 -0
- trxasviewer-0.6.1/packaging/macos/make_icns.sh +28 -0
- trxasviewer-0.6.1/pyproject.toml +89 -0
- trxasviewer-0.6.1/setup.cfg +4 -0
- trxasviewer-0.6.1/src/trxasviewer/__init__.py +29 -0
- trxasviewer-0.6.1/src/trxasviewer/cli.py +75 -0
- trxasviewer-0.6.1/src/trxasviewer/core/__init__.py +48 -0
- trxasviewer-0.6.1/src/trxasviewer/core/array_ops.py +86 -0
- trxasviewer-0.6.1/src/trxasviewer/core/constants.py +7 -0
- trxasviewer-0.6.1/src/trxasviewer/core/dataset.py +902 -0
- trxasviewer-0.6.1/src/trxasviewer/core/file_io.py +248 -0
- trxasviewer-0.6.1/src/trxasviewer/core/fitting.py +491 -0
- trxasviewer-0.6.1/src/trxasviewer/core/graph.py +296 -0
- trxasviewer-0.6.1/src/trxasviewer/core/io.py +177 -0
- trxasviewer-0.6.1/src/trxasviewer/core/plot.py +388 -0
- trxasviewer-0.6.1/src/trxasviewer/core/result.py +327 -0
- trxasviewer-0.6.1/src/trxasviewer/core/utilities.py +277 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/__init__.py +2 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/control/__init__.py +2 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/control/viewer_controller.py +237 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/control/workers.py +186 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/model/__init__.py +2 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/model/viewer_model.py +41 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/view/__init__.py +2 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/view/generated_ui.py +1058 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/view/pg_plot.py +76 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/view/viewer.ui +1712 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/view/viewer_view.py +1051 -0
- trxasviewer-0.6.1/src/trxasviewer/gui/view/widgets.py +563 -0
- trxasviewer-0.6.1/src/trxasviewer/modeling_gui/__init__.py +2 -0
- trxasviewer-0.6.1/src/trxasviewer/modeling_gui/generated_modeling_ui.py +882 -0
- trxasviewer-0.6.1/src/trxasviewer/modeling_gui/kinetics_optimizer.py +176 -0
- trxasviewer-0.6.1/src/trxasviewer/modeling_gui/modeling.ui +1403 -0
- trxasviewer-0.6.1/src/trxasviewer/modeling_gui/trxas_modeling.py +679 -0
- trxasviewer-0.6.1/src/trxasviewer.egg-info/PKG-INFO +150 -0
- trxasviewer-0.6.1/src/trxasviewer.egg-info/SOURCES.txt +84 -0
- trxasviewer-0.6.1/src/trxasviewer.egg-info/dependency_links.txt +1 -0
- trxasviewer-0.6.1/src/trxasviewer.egg-info/entry_points.txt +2 -0
- trxasviewer-0.6.1/src/trxasviewer.egg-info/requires.txt +26 -0
- trxasviewer-0.6.1/src/trxasviewer.egg-info/top_level.txt +1 -0
- trxasviewer-0.6.1/tests/__init__.py +3 -0
- trxasviewer-0.6.1/tests/conftest.py +19 -0
- trxasviewer-0.6.1/tests/packaging/__init__.py +0 -0
- trxasviewer-0.6.1/tests/packaging/test_build_releases_workflow.py +93 -0
- trxasviewer-0.6.1/tests/packaging/test_entrypoint.py +22 -0
- trxasviewer-0.6.1/tests/packaging/test_icons.py +26 -0
- trxasviewer-0.6.1/tests/packaging/test_linux_packaging.py +34 -0
- trxasviewer-0.6.1/tests/packaging/test_macos_packaging.py +37 -0
- trxasviewer-0.6.1/tests/packaging/test_trxasviewer_spec.py +159 -0
- trxasviewer-0.6.1/tests/test_array_ops.py +47 -0
- trxasviewer-0.6.1/tests/test_dataset.py +19 -0
- trxasviewer-0.6.1/tests/test_fitting.py +46 -0
- trxasviewer-0.6.1/tests/test_graph.py +107 -0
- trxasviewer-0.6.1/tests/test_parsing.py +42 -0
- trxasviewer-0.6.1/tests/test_result.py +64 -0
- trxasviewer-0.6.1/tests/test_trxasviewer.py +68 -0
- trxasviewer-0.6.1/tests/test_utilities.py +91 -0
- trxasviewer-0.6.1/tests/test_viewer_controller.py +61 -0
- trxasviewer-0.6.1/trxasviewer.spec +168 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 4
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
charset = utf-8
|
|
11
|
+
end_of_line = lf
|
|
12
|
+
|
|
13
|
+
[*.bat]
|
|
14
|
+
indent_style = tab
|
|
15
|
+
end_of_line = crlf
|
|
16
|
+
|
|
17
|
+
[LICENSE]
|
|
18
|
+
insert_final_newline = false
|
|
19
|
+
|
|
20
|
+
[Makefile]
|
|
21
|
+
indent_style = tab
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
* TrXASViewer version:
|
|
2
|
+
* Python version:
|
|
3
|
+
* Operating System:
|
|
4
|
+
|
|
5
|
+
### Description
|
|
6
|
+
|
|
7
|
+
Describe what you were trying to get done.
|
|
8
|
+
Tell us what happened, what went wrong, and what you expected to happen.
|
|
9
|
+
|
|
10
|
+
### What I Did
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
Paste the command(s) you ran and the output.
|
|
14
|
+
If there was a crash, please include the traceback here.
|
|
15
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Build and Publish Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*' # Trigger only when a version tag is pushed
|
|
7
|
+
workflow_dispatch: # Allows manual triggering from GitHub UI, e.g. to publish an existing tag
|
|
8
|
+
inputs:
|
|
9
|
+
publish:
|
|
10
|
+
description: "Publish the build to PyPI"
|
|
11
|
+
type: boolean
|
|
12
|
+
required: false
|
|
13
|
+
default: false
|
|
14
|
+
version:
|
|
15
|
+
description: "Override the package version (e.g. 0.6.1), instead of deriving it from git tags on this ref"
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
default: ""
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
build:
|
|
22
|
+
runs-on: ubuntu-latest # Use the latest Ubuntu environment
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout Repository
|
|
26
|
+
uses: actions/checkout@v7 # Get the repository code
|
|
27
|
+
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@v7
|
|
30
|
+
with:
|
|
31
|
+
python-version: "3.10"
|
|
32
|
+
|
|
33
|
+
- name: Install Build Dependencies
|
|
34
|
+
run: |
|
|
35
|
+
python -m pip install --upgrade pip
|
|
36
|
+
python -m pip install build
|
|
37
|
+
|
|
38
|
+
- name: Override package version
|
|
39
|
+
if: github.event_name == 'workflow_dispatch' && inputs.version != ''
|
|
40
|
+
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=${{ inputs.version }}" >> "$GITHUB_ENV"
|
|
41
|
+
|
|
42
|
+
- name: Build the Python Package
|
|
43
|
+
run: python -m build
|
|
44
|
+
|
|
45
|
+
- name: Upload Built Package as Artifact
|
|
46
|
+
uses: actions/upload-artifact@v7
|
|
47
|
+
with:
|
|
48
|
+
name: built-package
|
|
49
|
+
path: dist/
|
|
50
|
+
|
|
51
|
+
- name: Publish to PyPI
|
|
52
|
+
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && inputs.publish == true)
|
|
53
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
54
|
+
with:
|
|
55
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
name: Build GUI releases
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
version_tag:
|
|
9
|
+
description: "Tag to use for artifact naming on a manual run"
|
|
10
|
+
required: true
|
|
11
|
+
default: "v0.0.0-dev"
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
PYTHON_VERSION: "3.12"
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
windows-build:
|
|
18
|
+
name: Build Windows executable
|
|
19
|
+
runs-on: windows-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- uses: actions/setup-python@v7
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
28
|
+
|
|
29
|
+
- name: Cache PyInstaller build
|
|
30
|
+
uses: actions/cache@v5
|
|
31
|
+
with:
|
|
32
|
+
path: build/
|
|
33
|
+
key: pyinstaller-win-${{ hashFiles('trxasviewer.spec', 'packaging/entrypoint.py') }}
|
|
34
|
+
restore-keys: |
|
|
35
|
+
pyinstaller-win-
|
|
36
|
+
|
|
37
|
+
- name: Install project and PyInstaller
|
|
38
|
+
run: |
|
|
39
|
+
python -m pip install --upgrade pip
|
|
40
|
+
python -m pip install -e ".[pyinstaller]"
|
|
41
|
+
|
|
42
|
+
- name: Build executable
|
|
43
|
+
run: pyinstaller trxasviewer.spec
|
|
44
|
+
|
|
45
|
+
- name: Rename executable with version
|
|
46
|
+
shell: bash
|
|
47
|
+
run: |
|
|
48
|
+
TAG="${{ github.event_name == 'push' && github.ref_name || github.event.inputs.version_tag }}"
|
|
49
|
+
mv dist/trxasviewer.exe "dist/trxasviewer-${TAG}-windows.exe"
|
|
50
|
+
|
|
51
|
+
- name: Smoke test executable launches
|
|
52
|
+
shell: pwsh
|
|
53
|
+
env:
|
|
54
|
+
QT_QPA_PLATFORM: offscreen
|
|
55
|
+
run: |
|
|
56
|
+
$exe = Get-ChildItem dist -Filter "trxasviewer-*-windows.exe" | Select-Object -First 1
|
|
57
|
+
if (-not $exe) { throw "No .exe found in dist/" }
|
|
58
|
+
$proc = Start-Process -FilePath $exe.FullName -PassThru
|
|
59
|
+
Start-Sleep -Seconds 8
|
|
60
|
+
if ($proc.HasExited) {
|
|
61
|
+
Write-Error "Executable exited early with code $($proc.ExitCode)"
|
|
62
|
+
exit 1
|
|
63
|
+
}
|
|
64
|
+
Write-Host "Executable is running after 8s, smoke test passed"
|
|
65
|
+
Stop-Process -Id $proc.Id -Force
|
|
66
|
+
|
|
67
|
+
- name: Upload Windows executable artifact
|
|
68
|
+
uses: actions/upload-artifact@v7
|
|
69
|
+
with:
|
|
70
|
+
name: windows-exe
|
|
71
|
+
path: dist/trxasviewer-*-windows.exe
|
|
72
|
+
retention-days: 14
|
|
73
|
+
|
|
74
|
+
linux-appimage-build:
|
|
75
|
+
name: Build Linux AppImage
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
container: rockylinux:9
|
|
78
|
+
steps:
|
|
79
|
+
- name: Install git
|
|
80
|
+
run: dnf install -y git
|
|
81
|
+
|
|
82
|
+
- uses: actions/checkout@v7
|
|
83
|
+
with:
|
|
84
|
+
fetch-depth: 0
|
|
85
|
+
|
|
86
|
+
- name: Install system dependencies
|
|
87
|
+
run: |
|
|
88
|
+
dnf install -y python3.11 python3.11-pip \
|
|
89
|
+
mesa-libGL mesa-libEGL libxkbcommon libxkbcommon-x11 \
|
|
90
|
+
xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil \
|
|
91
|
+
dbus-libs fontconfig freetype file
|
|
92
|
+
|
|
93
|
+
- name: Cache PyInstaller build
|
|
94
|
+
uses: actions/cache@v5
|
|
95
|
+
with:
|
|
96
|
+
path: build/
|
|
97
|
+
key: pyinstaller-linux-${{ hashFiles('trxasviewer.spec', 'packaging/entrypoint.py') }}
|
|
98
|
+
restore-keys: |
|
|
99
|
+
pyinstaller-linux-
|
|
100
|
+
|
|
101
|
+
- name: Install project and PyInstaller
|
|
102
|
+
run: |
|
|
103
|
+
python3.11 -m pip install --upgrade pip
|
|
104
|
+
python3.11 -m pip install -e ".[pyinstaller]"
|
|
105
|
+
|
|
106
|
+
- name: Build AppImage
|
|
107
|
+
run: |
|
|
108
|
+
TAG="${{ github.event_name == 'push' && github.ref_name || github.event.inputs.version_tag }}"
|
|
109
|
+
bash packaging/linux/build-appimage.sh "$TAG"
|
|
110
|
+
|
|
111
|
+
- name: Smoke test AppImage launches
|
|
112
|
+
env:
|
|
113
|
+
QT_QPA_PLATFORM: offscreen
|
|
114
|
+
run: |
|
|
115
|
+
APPIMAGE=$(ls dist/trxasviewer-*-x86_64.AppImage 2>/dev/null || echo "")
|
|
116
|
+
if [ -z "$APPIMAGE" ]; then
|
|
117
|
+
echo "No AppImage found"
|
|
118
|
+
ls -la dist/
|
|
119
|
+
exit 1
|
|
120
|
+
fi
|
|
121
|
+
chmod +x "$APPIMAGE"
|
|
122
|
+
timeout 8 "$APPIMAGE" --appimage-extract-and-run > /tmp/run.log 2>&1 &
|
|
123
|
+
RPID=$!
|
|
124
|
+
sleep 6
|
|
125
|
+
if kill -0 $RPID 2>/dev/null; then
|
|
126
|
+
echo "Smoke test passed: AppImage is running after 6s"
|
|
127
|
+
kill $RPID
|
|
128
|
+
else
|
|
129
|
+
wait $RPID || true
|
|
130
|
+
echo "Smoke test FAILED: AppImage exited early"
|
|
131
|
+
cat /tmp/run.log
|
|
132
|
+
exit 1
|
|
133
|
+
fi
|
|
134
|
+
|
|
135
|
+
- name: Upload Linux AppImage artifact
|
|
136
|
+
uses: actions/upload-artifact@v7
|
|
137
|
+
with:
|
|
138
|
+
name: linux-appimage
|
|
139
|
+
path: dist/trxasviewer-*-x86_64.AppImage
|
|
140
|
+
retention-days: 14
|
|
141
|
+
|
|
142
|
+
macos-build:
|
|
143
|
+
name: Build, sign, and notarize macOS app
|
|
144
|
+
runs-on: macos-14
|
|
145
|
+
environment: macos-signing
|
|
146
|
+
steps:
|
|
147
|
+
- uses: actions/checkout@v7
|
|
148
|
+
with:
|
|
149
|
+
fetch-depth: 0
|
|
150
|
+
|
|
151
|
+
- uses: actions/setup-python@v7
|
|
152
|
+
with:
|
|
153
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
154
|
+
|
|
155
|
+
- name: Cache PyInstaller build
|
|
156
|
+
uses: actions/cache@v5
|
|
157
|
+
with:
|
|
158
|
+
path: build/
|
|
159
|
+
key: pyinstaller-macos-${{ hashFiles('trxasviewer.spec', 'packaging/entrypoint.py') }}
|
|
160
|
+
restore-keys: |
|
|
161
|
+
pyinstaller-macos-
|
|
162
|
+
|
|
163
|
+
- name: Install project and PyInstaller
|
|
164
|
+
run: |
|
|
165
|
+
python -m pip install --upgrade pip
|
|
166
|
+
python -m pip install -e ".[pyinstaller]"
|
|
167
|
+
|
|
168
|
+
- name: Generate .icns app icon
|
|
169
|
+
run: bash packaging/macos/make_icns.sh
|
|
170
|
+
|
|
171
|
+
- name: Import Developer ID certificate
|
|
172
|
+
env:
|
|
173
|
+
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
|
|
174
|
+
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
|
|
175
|
+
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
|
176
|
+
run: |
|
|
177
|
+
CERTIFICATE_PATH="$RUNNER_TEMP/developer-id.p12"
|
|
178
|
+
KEYCHAIN_PATH="$RUNNER_TEMP/signing.keychain-db"
|
|
179
|
+
|
|
180
|
+
printf '%s' "$BUILD_CERTIFICATE_BASE64" \
|
|
181
|
+
| base64 --decode > "$CERTIFICATE_PATH"
|
|
182
|
+
|
|
183
|
+
security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
|
|
184
|
+
security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"
|
|
185
|
+
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
|
|
186
|
+
|
|
187
|
+
security import "$CERTIFICATE_PATH" \
|
|
188
|
+
-k "$KEYCHAIN_PATH" \
|
|
189
|
+
-P "$P12_PASSWORD" \
|
|
190
|
+
-A \
|
|
191
|
+
-t cert \
|
|
192
|
+
-f pkcs12
|
|
193
|
+
|
|
194
|
+
security set-key-partition-list \
|
|
195
|
+
-S apple-tool:,apple:,codesign: \
|
|
196
|
+
-s \
|
|
197
|
+
-k "$KEYCHAIN_PASSWORD" \
|
|
198
|
+
"$KEYCHAIN_PATH"
|
|
199
|
+
|
|
200
|
+
security list-keychains -d user -s "$KEYCHAIN_PATH"
|
|
201
|
+
security default-keychain -d user -s "$KEYCHAIN_PATH"
|
|
202
|
+
|
|
203
|
+
echo "Available signing identities:"
|
|
204
|
+
security find-identity -v -p codesigning "$KEYCHAIN_PATH"
|
|
205
|
+
|
|
206
|
+
SIGNING_IDENTITY="$(
|
|
207
|
+
security find-identity -v -p codesigning "$KEYCHAIN_PATH" \
|
|
208
|
+
| grep "Developer ID Application" \
|
|
209
|
+
| head -1 \
|
|
210
|
+
| awk '{print $2}'
|
|
211
|
+
)"
|
|
212
|
+
|
|
213
|
+
if [ -z "$SIGNING_IDENTITY" ]; then
|
|
214
|
+
echo "::error::Developer ID Application identity not found"
|
|
215
|
+
exit 1
|
|
216
|
+
fi
|
|
217
|
+
|
|
218
|
+
echo "SIGNING_IDENTITY=$SIGNING_IDENTITY" >> "$GITHUB_ENV"
|
|
219
|
+
echo "KEYCHAIN_PATH=$KEYCHAIN_PATH" >> "$GITHUB_ENV"
|
|
220
|
+
|
|
221
|
+
- name: Build application
|
|
222
|
+
run: pyinstaller trxasviewer.spec
|
|
223
|
+
|
|
224
|
+
- name: Sign application bundle
|
|
225
|
+
run: |
|
|
226
|
+
codesign \
|
|
227
|
+
--force \
|
|
228
|
+
--deep \
|
|
229
|
+
--options runtime \
|
|
230
|
+
--timestamp \
|
|
231
|
+
--entitlements packaging/macos/entitlements.plist \
|
|
232
|
+
--sign "$SIGNING_IDENTITY" \
|
|
233
|
+
"dist/trxasviewer.app"
|
|
234
|
+
|
|
235
|
+
- name: Verify application signature
|
|
236
|
+
run: |
|
|
237
|
+
codesign --verify --deep --strict --verbose=2 "dist/trxasviewer.app"
|
|
238
|
+
codesign --display --verbose=4 "dist/trxasviewer.app"
|
|
239
|
+
|
|
240
|
+
- name: Notarize and staple app bundle
|
|
241
|
+
env:
|
|
242
|
+
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
243
|
+
APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
|
|
244
|
+
APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}
|
|
245
|
+
run: |
|
|
246
|
+
ditto -c -k --keepParent "dist/trxasviewer.app" "dist/trxasviewer.zip"
|
|
247
|
+
|
|
248
|
+
xcrun notarytool submit "dist/trxasviewer.zip" \
|
|
249
|
+
--apple-id "$APPLE_ID" \
|
|
250
|
+
--password "$APPLE_APP_PASSWORD" \
|
|
251
|
+
--team-id "$APPLE_TEAM_ID" \
|
|
252
|
+
--wait
|
|
253
|
+
|
|
254
|
+
xcrun stapler staple "dist/trxasviewer.app"
|
|
255
|
+
rm -f "dist/trxasviewer.zip"
|
|
256
|
+
|
|
257
|
+
- name: Smoke test app launches
|
|
258
|
+
run: |
|
|
259
|
+
"dist/trxasviewer.app/Contents/MacOS/trxasviewer" &
|
|
260
|
+
APP_PID=$!
|
|
261
|
+
sleep 8
|
|
262
|
+
if kill -0 $APP_PID 2>/dev/null; then
|
|
263
|
+
echo "Smoke test passed: app is running after 8s"
|
|
264
|
+
kill $APP_PID
|
|
265
|
+
else
|
|
266
|
+
wait $APP_PID || true
|
|
267
|
+
echo "Smoke test FAILED: app exited early"
|
|
268
|
+
exit 1
|
|
269
|
+
fi
|
|
270
|
+
|
|
271
|
+
- name: Create DMG
|
|
272
|
+
run: |
|
|
273
|
+
mkdir -p dmg-root
|
|
274
|
+
cp -R "dist/trxasviewer.app" dmg-root/
|
|
275
|
+
ln -s /Applications dmg-root/Applications
|
|
276
|
+
|
|
277
|
+
hdiutil create \
|
|
278
|
+
-volname "trxasviewer" \
|
|
279
|
+
-srcfolder dmg-root \
|
|
280
|
+
-format UDZO \
|
|
281
|
+
-ov \
|
|
282
|
+
"dist/trxasviewer.dmg"
|
|
283
|
+
|
|
284
|
+
- name: Sign DMG
|
|
285
|
+
run: |
|
|
286
|
+
codesign \
|
|
287
|
+
--force \
|
|
288
|
+
--timestamp \
|
|
289
|
+
--sign "$SIGNING_IDENTITY" \
|
|
290
|
+
"dist/trxasviewer.dmg"
|
|
291
|
+
|
|
292
|
+
- name: Notarize and staple DMG
|
|
293
|
+
env:
|
|
294
|
+
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
295
|
+
APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
|
|
296
|
+
APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}
|
|
297
|
+
run: |
|
|
298
|
+
xcrun notarytool submit "dist/trxasviewer.dmg" \
|
|
299
|
+
--apple-id "$APPLE_ID" \
|
|
300
|
+
--password "$APPLE_APP_PASSWORD" \
|
|
301
|
+
--team-id "$APPLE_TEAM_ID" \
|
|
302
|
+
--wait
|
|
303
|
+
|
|
304
|
+
xcrun stapler staple "dist/trxasviewer.dmg"
|
|
305
|
+
xcrun stapler validate "dist/trxasviewer.dmg"
|
|
306
|
+
|
|
307
|
+
- name: Check Gatekeeper
|
|
308
|
+
run: |
|
|
309
|
+
spctl \
|
|
310
|
+
--assess \
|
|
311
|
+
--type open \
|
|
312
|
+
--context context:primary-signature \
|
|
313
|
+
--verbose=4 \
|
|
314
|
+
"dist/trxasviewer.dmg"
|
|
315
|
+
|
|
316
|
+
- name: Rename DMG with version
|
|
317
|
+
run: |
|
|
318
|
+
TAG="${{ github.event_name == 'push' && github.ref_name || github.event.inputs.version_tag }}"
|
|
319
|
+
mv "dist/trxasviewer.dmg" "dist/trxasviewer-${TAG}-macos.dmg"
|
|
320
|
+
|
|
321
|
+
- name: Upload macOS dmg artifact
|
|
322
|
+
uses: actions/upload-artifact@v7
|
|
323
|
+
with:
|
|
324
|
+
name: macos-dmg
|
|
325
|
+
path: dist/trxasviewer-*-macos.dmg
|
|
326
|
+
retention-days: 14
|
|
327
|
+
|
|
328
|
+
- name: Delete temporary keychain
|
|
329
|
+
if: always()
|
|
330
|
+
run: |
|
|
331
|
+
if [ -n "${KEYCHAIN_PATH:-}" ]; then
|
|
332
|
+
security delete-keychain "$KEYCHAIN_PATH" || true
|
|
333
|
+
fi
|
|
334
|
+
|
|
335
|
+
github-release:
|
|
336
|
+
name: Publish GitHub Release
|
|
337
|
+
needs: [windows-build, linux-appimage-build, macos-build]
|
|
338
|
+
if: |
|
|
339
|
+
github.event_name == 'push' &&
|
|
340
|
+
!cancelled() &&
|
|
341
|
+
needs.windows-build.result == 'success' &&
|
|
342
|
+
needs.linux-appimage-build.result == 'success'
|
|
343
|
+
runs-on: ubuntu-latest
|
|
344
|
+
permissions:
|
|
345
|
+
contents: write
|
|
346
|
+
steps:
|
|
347
|
+
- name: Download Windows executable artifact
|
|
348
|
+
uses: actions/download-artifact@v8
|
|
349
|
+
with:
|
|
350
|
+
name: windows-exe
|
|
351
|
+
path: dist/
|
|
352
|
+
|
|
353
|
+
- name: Download Linux AppImage artifact
|
|
354
|
+
uses: actions/download-artifact@v8
|
|
355
|
+
with:
|
|
356
|
+
name: linux-appimage
|
|
357
|
+
path: dist/
|
|
358
|
+
|
|
359
|
+
- name: Download macOS dmg artifact
|
|
360
|
+
if: needs.macos-build.result == 'success'
|
|
361
|
+
uses: actions/download-artifact@v8
|
|
362
|
+
with:
|
|
363
|
+
name: macos-dmg
|
|
364
|
+
path: dist/
|
|
365
|
+
|
|
366
|
+
- name: Create/update GitHub Release
|
|
367
|
+
uses: softprops/action-gh-release@v3
|
|
368
|
+
with:
|
|
369
|
+
tag_name: ${{ github.ref_name }}
|
|
370
|
+
name: "trxasviewer ${{ github.ref_name }}"
|
|
371
|
+
generate_release_notes: true
|
|
372
|
+
files: |
|
|
373
|
+
dist/trxasviewer-*-windows.exe
|
|
374
|
+
dist/trxasviewer-*-x86_64.AppImage
|
|
375
|
+
dist/trxasviewer-*-macos.dmg
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script from a template
|
|
30
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
!trxasviewer.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
.hypothesis/
|
|
49
|
+
.pytest_cache/
|
|
50
|
+
|
|
51
|
+
# Translations
|
|
52
|
+
*.mo
|
|
53
|
+
*.pot
|
|
54
|
+
|
|
55
|
+
# Django stuff:
|
|
56
|
+
*.log
|
|
57
|
+
local_settings.py
|
|
58
|
+
|
|
59
|
+
# Flask stuff:
|
|
60
|
+
instance/
|
|
61
|
+
.webassets-cache
|
|
62
|
+
|
|
63
|
+
# Scrapy stuff:
|
|
64
|
+
.scrapy
|
|
65
|
+
|
|
66
|
+
# Sphinx documentation
|
|
67
|
+
docs/_build/
|
|
68
|
+
|
|
69
|
+
# PyBuilder
|
|
70
|
+
target/
|
|
71
|
+
|
|
72
|
+
# Jupyter Notebook
|
|
73
|
+
.ipynb_checkpoints
|
|
74
|
+
|
|
75
|
+
# Dask worker cache
|
|
76
|
+
dask-worker-space/
|
|
77
|
+
|
|
78
|
+
# pyenv
|
|
79
|
+
.python-version
|
|
80
|
+
|
|
81
|
+
# Superpowers subagent-driven-development scratch workspace
|
|
82
|
+
.superpowers/
|
|
83
|
+
|
|
84
|
+
# celery beat schedule file
|
|
85
|
+
celerybeat-schedule
|
|
86
|
+
|
|
87
|
+
# SageMath parsed files
|
|
88
|
+
*.sage.py
|
|
89
|
+
|
|
90
|
+
# dotenv
|
|
91
|
+
.env
|
|
92
|
+
|
|
93
|
+
# virtualenv
|
|
94
|
+
.venv
|
|
95
|
+
venv/
|
|
96
|
+
ENV/
|
|
97
|
+
|
|
98
|
+
# Spyder project settings
|
|
99
|
+
.spyderproject
|
|
100
|
+
.spyproject
|
|
101
|
+
|
|
102
|
+
# Rope project settings
|
|
103
|
+
.ropeproject
|
|
104
|
+
|
|
105
|
+
# mkdocs documentation
|
|
106
|
+
/site
|
|
107
|
+
|
|
108
|
+
# mypy
|
|
109
|
+
.mypy_cache/
|
|
110
|
+
|
|
111
|
+
# IDE settings
|
|
112
|
+
.vscode/
|
|
113
|
+
.idea/
|
|
114
|
+
|
|
115
|
+
.nfs*
|