Digital-Sapphire / PyUpdater

Pyinstaller auto-update library
https://www.pyupdater.org
460 stars 92 forks source link

The command make-spec --name does nothing. #297

Closed megaredb closed 3 years ago

megaredb commented 3 years ago

I don't know why, but this command: pyupdater make-spec --name win32 client.py does nothing. The .spec file name is always "win.spec".

(venv) C:\Users\User\PycharmProjects\socket-sender\SenderClient>pyupdater make-spec --name win32 client.py
[INFO] PyUpdater 4.0
703 INFO: PyUpdater 4.0
703 DEBUG: Config Dir: C:\Users\User\PycharmProjects\socket-sender\SenderClient\.pyupdater
703 DEBUG: Config DB: C:\Users\User\PycharmProjects\socket-sender\SenderClient\.pyupdater\config.pyu
703 DEBUG: Building from python source file: client.py
703 DEBUG: Source file abs path: C:\Users\User\PycharmProjects\socket-sender\SenderClient\client.py
703 DEBUG: App Info: {'type': 'script', 'name': 'C:\\Users\\User\\PycharmProjects\\socket-sender\\SenderClient\\client.py'}
703 DEBUG: *** User generated spec file ***
703 DEBUG: There could be errors
703 DEBUG: Hook directory: c:\users\user\pycharmprojects\socket-sender\venv\lib\site-packages\pyupdater\hooks
703 DEBUG: Make spec cmd: --name=win --specpath=C:\Users\User\PycharmProjects\socket-sender\SenderClient --additional-hooks-dir=c:\users\user\pycharmproje
cts\socket-sender\venv\lib\site-packages\pyupdater\hooks --log-level=ERROR C:\Users\User\PycharmProjects\socket-sender\SenderClient\client.py
718 DEBUG: wrote C:\Users\User\PycharmProjects\socket-sender\SenderClient\win.spec
[INFO] Spec file placed in cwd
718 INFO: Spec file placed in cwd

win.spec output:

# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(['C:\\Users\\User\\PycharmProjects\\socket-sender\\SenderClient\\client.py'],
             pathex=['C:\\Users\\User\\PycharmProjects\\socket-sender\\SenderClient', 'C:\\Users\\User\\PycharmProjects\\socket-sender\\SenderClient'],
             binaries=[],
             datas=[],
             hiddenimports=[],
             hookspath=['c:\\users\\user\\pycharmprojects\\socket-sender\\venv\\lib\\site-packages\\pyupdater\\hooks'],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          [],
          exclude_binaries=True,
          name='win',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          console=True )
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               upx_exclude=[],
               name='win')

But when I type pyupdater make-spec -- win32 client.py name of file is "win32.spec". Why? (I can't build .exe with win32.spec, created with pyupdater make-spec -- win32 client.py, pyupdater build --onefile --app-version 1.0.0 win32.spec gives error: script 'win32' not found)

And yes, I want to make separate versions of the program on Windows 32 bit and Windows 64 bit(Using different python versions).