add packaging information

This commit is contained in:
2023-05-24 21:40:47 +02:00
parent fc8f027a1c
commit 4c2900b6b3
5 changed files with 25 additions and 4 deletions

6
.gitignore vendored
View File

@@ -11,4 +11,8 @@
__pycache__
# remove node_modules from repo
node_modules
node_modules
# ignore build & dist folders
build
dist

View File

@@ -22,6 +22,7 @@ importedModules = {}
engineList = os.listdir( 'bin/engines' );
engineList.pop( 0 )
for element in engineList:
importedModules[ element ] = importlib.import_module( 'bin.engines.' + element + '.' + element ).Scaler()

View File

@@ -8,7 +8,7 @@ a = Analysis(
['imagevideoupscaler-cli.py'],
pathex=[],
binaries=[],
datas=[('config', 'config')],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
@@ -26,7 +26,7 @@ exe = EXE(
a.scripts,
[],
exclude_binaries=True,
name='Image & Video Upscaler',
name='imagevideoupscaler',
debug=False,
bootloader_ignore_signals=False,
strip=False,
@@ -46,5 +46,5 @@ coll = COLLECT(
strip=False,
upx=True,
upx_exclude=[],
name='imagevideoupscaler-cli',
name='imagevideoupscaler',
)

16
package.sh Normal file
View File

@@ -0,0 +1,16 @@
#! /bin/bash
# Make linux executable
pyinstaller imagevideoupscaler-cli.spec
mv -r ./dist/imagevideupscaler ./dist/imagevideupscaler-linux
cp -r ./bin ./dist/imagevideupscaler-linux
cp -r ./config ./dist/imagevideupscaler-linux
cp ./imagevideupscaler-cli.py ./dist/imagevideupscaler-linux
cp ./LICENSE ./dist/imagevideupscaler-linux
cp ./logo.png ./dist/imagevideupscaler-linux
# package rpm & deb
# TODO: create packager
# Make windows executable
# TODO: create compiler