Skip to content

Commit d46d0ce

Browse files
committed
Fix: Missing dll
1 parent 1c3de87 commit d46d0ce

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
build:
10+
permissions:
11+
contents: write
1012
runs-on: windows-latest
1113
steps:
1214
- uses: actions/checkout@v2

main.spec

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# -*- mode: python ; coding: utf-8 -*-
2+
import site
3+
import os.path
24

35

46
block_cipher = None
57

8+
packages_path = site.getsitepackages()[1]
9+
if os.path.exists('venv'):
10+
packages_path = 'venv\\Lib\\site-packages'
611

712
a = Analysis(
813
['main.py'],
914
pathex=['venv\\Lib\\site-packages'],
1015
datas=[('data', 'data')],
16+
binaries=[
17+
(packages_path+"\\libs\\WinJobster-x64.dll", "libs"),
18+
(packages_path+"\\libs\\WinJobster-x86.dll", "libs"),
19+
],
1120
hiddenimports=['platformdirs', 'pkg_resources'],
1221
hookspath=[],
1322
hooksconfig={},

0 commit comments

Comments
 (0)