diff --git a/.gitignore b/.gitignore index 06ff2fc..9d5d744 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,8 @@ __pycache__ # remove node_modules from repo -node_modules \ No newline at end of file +node_modules + +# ignore build & dist folders +build +dist \ No newline at end of file diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index 94d4eab..a36c128 100644 Binary files a/bin/__pycache__/handler.cpython-311.pyc and b/bin/__pycache__/handler.cpython-311.pyc differ diff --git a/bin/handler.py b/bin/handler.py index 1fa5871..f2099f1 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -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() diff --git a/imagevideoupscaler-cli.spec b/imagevideoupscaler.spec similarity index 89% rename from imagevideoupscaler-cli.spec rename to imagevideoupscaler.spec index c9791f2..01be6b5 100644 --- a/imagevideoupscaler-cli.spec +++ b/imagevideoupscaler.spec @@ -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', ) diff --git a/package.sh b/package.sh new file mode 100644 index 0000000..6a2633a --- /dev/null +++ b/package.sh @@ -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 \ No newline at end of file