Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ build/
dist/
condenser.spec
.idea/
.venv/
.DS_Store
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ How to build an .exe file
* using pip:
- ensure you use Python version from 3.10 to 3.12
- run pip install -r ./requirements.txt
* ensure you have `ffmpeg` and `ffprobe` (available at https://ffmpeg.org/)
* Run build script:
./make_exe.bat
> For Linux/Mac, use `./make_exe.bat`
* You can find the output in the dist/condenser directory.


Expand Down
Empty file added distcondenserREADME.txt
Empty file.
3 changes: 2 additions & 1 deletion make_exe.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ del dist\condenser\_internal\_lzma.pyd
del dist\condenser\_internal\unicodedata.pyd
del dist\condenser\_internal\libcrypto-3.dll
del dist\condenser\_internal\ucrtbase.dll
del dist\condenser\_internal\api-ms-win-*
del dist\condenser\_internal\api-ms-win-*
del dist\condenser\_internal\api-ms-win-*
14 changes: 14 additions & 0 deletions make_exe.linux.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pyinstaller --exclude-module PIL --onedir -y -i "./condenser_icon.png" "./condenser.py"
mkdir -p dist/condenser/utils/ffmpeg
cp $(which ffmpeg) dist/condenser/utils/ffmpeg/ffmpeg
cp $(which ffprobe) dist/condenser/utils/ffmpeg/ffprobe
cp config.json dist/condenser/config.json
grep -v '^!\[Condenser\].*' README.md | grep '^\[!\[codecov\].*' > dist/condenser/README.txt
rm dist/condenser/_internal/_bz2.pyd
rm dist/condenser/_internal/_hashlib.pyd
rm dist/condenser/_internal/_socket.pyd
rm dist/condenser/_internal/_lzma.pyd
rm dist/condenser/_internal/unicodedata.pyd
rm dist/condenser/_internal/libcrypto-3.dll
rm dist/condenser/_internal/ucrtbase.dll
rm dist/condenser/_internal/api-ms-win-*
12 changes: 12 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /usr/bin/env nix-shell
# python -m venv .venv
# source .venv/bin/activate
# pip install -r requirements.txt
let
pkgs = import <nixpkgs> {};
in pkgs.mkShell {
packages = [
pkgs.python312Full
pkgs.ffmpeg_6-full
];
}