diff --git a/wallpaper_changer/README.md b/wallpaper_changer/README.md index 66f7429..1d3758f 100644 --- a/wallpaper_changer/README.md +++ b/wallpaper_changer/README.md @@ -1,5 +1,9 @@ Generated migration starter from WallpaperChanger.sh. Implements monitor detection, image scanning, openssl wrapper, naming table loader, wallpaper builder and GNOME setter. +Display the installed package version with `wallpaperchanger --version` (or `-v`). + +Select a folder mode with `--mode default|x|i` (shortcuts `-d`, `-x`, and `-i`); modes select the default `Desktop1920x1080`, `corrupt`, or `insta` folder. `--folder PATH` independently overrides the selected folder and accepts a relative name under the wallpaper directory or an absolute path. For example, `wallpaperchanger --mode x --folder custom` uses the `custom` folder. + Use `--disable-encryption` to build a wallpaper from a folder without encrypting files or decrypting images or the naming table. Encrypted image payloads are skipped; `.jpg_enc` files are included only when they contain plain JPEG data. Encrypt or decrypt the fixed naming-table files in the selected image folder: diff --git a/wallpaper_changer/main.spec b/wallpaper_changer/main.spec new file mode 100644 index 0000000..2ba8dd9 --- /dev/null +++ b/wallpaper_changer/main.spec @@ -0,0 +1,38 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='main', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) diff --git a/wallpaper_changer/pyproject.toml b/wallpaper_changer/pyproject.toml new file mode 100644 index 0000000..896ff03 --- /dev/null +++ b/wallpaper_changer/pyproject.toml @@ -0,0 +1,30 @@ +[project] +name = "wallpaper-changer" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +authors = [ + { name = "Lucas Vivo", email = "lucas@mediahost" } +] +requires-python = ">=3.12" +dependencies = [ + "cryptography>=46.0.7", + "pillow>=12.2.0", + "serverlibrary", +] + +[project.scripts] +wallpaper-changer = "wallpaper_changer:main" + +[build-system] +requires = ["uv_build>=0.12.19,<0.13.0"] +build-backend = "uv_build" + +[tool.setuptools] +package-dir = {"" = "src"} + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.uv.sources] +serverlibrary = { workspace = true } diff --git a/wallpaper_changer/wallpaper_changer.spec b/wallpaper_changer/wallpaper_changer.spec new file mode 100644 index 0000000..54c583a --- /dev/null +++ b/wallpaper_changer/wallpaper_changer.spec @@ -0,0 +1,38 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['main.py'], + pathex=['src'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='wallpaper_changer', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +)