Skip to content

Commit

Permalink
change pyinstaller to directory mode to resolve /tmp/ issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcswanson committed Oct 3, 2019
1 parent fac773b commit f6555a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.js
Expand Up @@ -40,7 +40,7 @@ function openLogFile() {


const createPyProc = () => {
const script = path.join(__dirname, 'dist', 'micboard-service').replace('app.asar', 'app.asar.unpacked');
const script = path.join(__dirname, 'dist', 'micboard-service', 'micboard-service').replace('app.asar', 'app.asar.unpacked');
pyProc = child.spawn(script, [], {
stdio: ['ignore', 'inherit', 'inherit'],
});
Expand Down
13 changes: 10 additions & 3 deletions py/micboard.spec
Expand Up @@ -21,12 +21,19 @@ pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
exclude_binaries=True,
name='micboard-service',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True )

coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='micboard-service')

0 comments on commit f6555a0

Please sign in to comment.