Skip to content

Commit

Permalink
Getting ready for a Windows version
Browse files Browse the repository at this point in the history
  • Loading branch information
giantpinkrobots committed Feb 5, 2024
1 parent 917deb5 commit 63ebbc3
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
Binary file added icon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions src/variamain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,3 +1054,7 @@ def main(version):
finally:
app.win.exitProgram(app)

if ((__name__ == '__main__') and (os.name == 'nt')):
subprocess.Popen(["aria2c", "--enable-rpc", "--rpc-listen-port=6801"], shell=True)
sys.exit(main(variaVersion))

52 changes: 52 additions & 0 deletions varia.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# -*- mode: python ; coding: utf-8 -*-

a = Analysis(
['variamain.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={
'gi': {
'icons': ['Adwaita'],
'themes': ['Adwaita'],
'module-versions': {
'Gtk': '4.0',
'Adw': '1'
}
}
},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='variamain',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='./icon.ico'
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='variamain',
)

0 comments on commit 63ebbc3

Please sign in to comment.