README.md
July 4, 2026 ยท View on GitHub
packing with pyinstaller:
in order to obfuscate a python script with obsidian, you first need to make sure you have installed pyinstaller via pip. then clone and compile the forked obsidian-pyinstaller repo found here. here are the steps on Windows:
- install the offical MSYS2 UCRT64 package from
https://www.msys2.org/ - open the terminal, then run
pacman -Syu && pacman -S --needed mingw-w64-ucrt-x86_64-gcc - use the same MSYS2 terminal to open
cmd.exethen navigate toobsidian-pyinstallercloned folder - compile the forked pyinstaller package with
python waf all
once complete, copy contents of obsidian-pyinstaller/pyinstaller/bootloader/Windows-64bit-intel directory to the system installation of pyinstallers bootloader (usually found in the site-packages/PyInstaller/bootloader folder of you python installation). it is recommended to backup the old bootloader before doing this step otherwise you will have to reinstall pyinstaller to use it without packing.
- run obsidian with the
--pyinstallerflag:
.\obsidian.ce.universal.exe --pyinstaller script.py obfuscated-py.exe