1
0
Fork 0
mirror of synced 2024-05-21 13:02:46 +12:00

linux support for new build system

This commit is contained in:
ChemicalXandco 2021-04-14 21:50:38 +01:00
parent 6acf8f0f0b
commit 0b31fe9ee2
2 changed files with 37 additions and 29 deletions

4
.gitignore vendored
View file

@ -6,5 +6,7 @@ __pycache__
/.vscode
/build
/dist
/deb_dist
*.tar.gz
/Rare.egg-info/
/venv
/venv

View file

@ -4,33 +4,6 @@ from cx_Freeze import setup, Executable
import rare
base = None
name = None
shortcutName = None
shortcutDir = None
bdist_msi_options = None
if sys.platform == 'win32':
base = 'Win32GUI'
name = 'Rare.exe'
shortcut_table = [
('DesktopShortcut', # Shortcut
'DesktopFolder', # Directory
'Rare', # Name
'TARGETDIR', # Component
'[TARGETDIR]'+name, # Target
None, # Arguments
'A gui for Legendary.', # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # Working Directory
)]
msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {'data': msi_data}
else:
name = 'Rare'
opts = {
'packages': [
'requests',
@ -52,10 +25,43 @@ opts = {
],
}
setup_options = {'build_exe': opts}
base = None
name = None
shortcutName = None
shortcutDir = None
bdist_msi_options = None
if sys.platform == 'win32':
base = 'Win32GUI'
name = 'Rare.exe'
shortcut_table = [
('DesktopShortcut', # Shortcut
'DesktopFolder', # Directory
'Rare', # Name
'TARGETDIR', # Component
'[TARGETDIR]'+name, # Target
None, # Arguments
'A gui for Legendary.', # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # Working Directory
)]
msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {'data': msi_data}
setup_options.update({"bdist_msi": bdist_msi_options})
else:
name = 'Rare'
setup(name = 'Rare',
version = rare.__version__,
description = 'A gui for Legendary.',
options = {'build_exe': opts, "bdist_msi": bdist_msi_options},
options = setup_options,
setup_requires=[
'cx_Freeze',
],
executables = [
Executable('rare/__main__.py',
targetName=name,