-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yaml
40 lines (37 loc) · 1.15 KB
/
action.yaml
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
name: Build dcspy binary packages
description: Assembles the full dcspy application.
runs:
using: composite
steps:
- name: "Compile and install PyInstaller"
shell: bash
run: |
git clone https://github.com/pyinstaller/pyinstaller.git
pyi_tag=$(python latest_tag.py pyinstaller 1)
pyi_ver=$(python latest_tag.py pyinstaller 0)
cd pyinstaller/bootloader
git checkout $pyi_tag
python.exe ./waf all
cd ..
python -m build
python -m twine check dist/*
pip install dist/pyinstaller-$pyi_ver-py3-none-any.whl
- name: "Generate version info file"
shell: bash
run: |
python generate_ver_file.py
- name: "Build dcspy package"
shell: bash
run: |
python -m build
python -m twine check dist/*
- name: "Build dcspy binaries"
shell: bash
run: |
export SOURCE_DATE_EPOCH=1674687685
export PYTHONHASHSEED=1674687685
pyinstaller --clean --noconfirm --log-level DEBUG dcspy.spec
md5sum dist/*.exe
unset PYTHONHASHSEED
unset SOURCE_DATE_EPOCH
pyi-bindepend dist/*.exe