-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (87 loc) · 2.86 KB
/
Copy pathpackage.yml
File metadata and controls
106 lines (87 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: package
on:
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
name: Verify before package
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt build
- name: Release and secret checks
run: python -m utils.release_checks --check-secrets --root .
- name: Compile checks
run: python -m compileall -q footprint osint utils gui.py main.py setup_context_menu.py tests
- name: Run test suite
run: python -m unittest discover -s tests -v
- name: Build sdist and wheel
run: python -m build
- name: Generate package checksums
run: sha256sum dist/* > dist/SHA256SUMS.txt
- name: Upload Python packages
uses: actions/upload-artifact@v4
with:
name: trackher-python-packages
path: dist/*
windows-bundle:
name: Windows standalone bundle
runs-on: windows-latest
timeout-minutes: 25
needs: verify
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install pyinstaller
- name: Build Trackher bundle
shell: powershell
run: >
pyinstaller
--noconfirm
--clean
--onedir
--name Trackher
--workpath build\pyinstaller
--specpath .
--add-data "assets;assets"
--add-data "osint\platforms.json;osint"
--add-data "osint\email_platforms.json;osint"
main.py
- name: Smoke test executable
shell: powershell
run: .\dist\Trackher\Trackher.exe --version
- name: Archive Windows bundle
shell: powershell
run: Compress-Archive -Path .\dist\Trackher\* -DestinationPath .\dist\Trackher-Windows-x64.zip -Force
- name: Generate Windows bundle checksum
shell: powershell
run: |
$hash = Get-FileHash .\dist\Trackher-Windows-x64.zip -Algorithm SHA256
"$($hash.Hash) Trackher-Windows-x64.zip" | Set-Content .\dist\Trackher-Windows-x64.zip.sha256.txt
- name: Upload Windows bundle
uses: actions/upload-artifact@v4
with:
name: Trackher-Windows-x64
path: |
dist/Trackher-Windows-x64.zip
dist/Trackher-Windows-x64.zip.sha256.txt