Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 9b9a699

Browse files
committed
Add build workflow
1 parent 96f2328 commit 9b9a699

File tree

4 files changed

+102
-0
lines changed

4 files changed

+102
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
Build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [windows-latest, ubuntu-latest, macOS-latest]
14+
15+
steps:
16+
- name: Obtain latest version of the repository
17+
uses: actions/checkout@v1
18+
- name: Set up Python 3
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.7'
22+
- name: Install requirements with PIP
23+
run: pip install -r requirements.txt
24+
- name: Install pyinstaller
25+
run: pip install pyinstaller
26+
- name: Build wc24decrypt
27+
run: pyinstaller wc24decrypt.spec
28+
- name: Build wc24encrypt
29+
run: pyinstaller wc24encrypt.spec
30+
- name: Publish Build Artifacts
31+
uses: actions/upload-artifact@master
32+
with:
33+
name: ${{ matrix.os }}
34+
path: dist

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nlzss
2+
pycryptodome
3+
requests
4+
rsa

wc24decrypt.spec

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['wc24decrypt.py'],
7+
binaries=[],
8+
datas=[],
9+
hiddenimports=[],
10+
hookspath=[],
11+
runtime_hooks=[],
12+
excludes=[],
13+
win_no_prefer_redirects=False,
14+
win_private_assemblies=False,
15+
cipher=block_cipher,
16+
noarchive=False)
17+
pyz = PYZ(a.pure, a.zipped_data,
18+
cipher=block_cipher)
19+
exe = EXE(pyz,
20+
a.scripts,
21+
a.binaries,
22+
a.zipfiles,
23+
a.datas,
24+
[],
25+
name='wc24decrypt',
26+
debug=False,
27+
bootloader_ignore_signals=False,
28+
strip=False,
29+
upx=True,
30+
upx_exclude=[],
31+
runtime_tmpdir=None,
32+
console=True)

wc24encrypt.spec

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['wc24encrypt.py'],
7+
binaries=[],
8+
datas=[],
9+
hiddenimports=[],
10+
hookspath=[],
11+
runtime_hooks=[],
12+
excludes=[],
13+
win_no_prefer_redirects=False,
14+
win_private_assemblies=False,
15+
cipher=block_cipher,
16+
noarchive=False)
17+
pyz = PYZ(a.pure, a.zipped_data,
18+
cipher=block_cipher)
19+
exe = EXE(pyz,
20+
a.scripts,
21+
a.binaries,
22+
a.zipfiles,
23+
a.datas,
24+
[],
25+
name='wc24encrypt',
26+
debug=False,
27+
bootloader_ignore_signals=False,
28+
strip=False,
29+
upx=True,
30+
upx_exclude=[],
31+
runtime_tmpdir=None,
32+
console=True)

0 commit comments

Comments
 (0)