From 51c979582c3a2026b370c4caeb2ee0a1a1a905cc Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 21 Nov 2022 02:13:29 +0100 Subject: [PATCH] Added Makefile to build a binary of fgg using the Nuitka Python compiler. This needs required libraries installed using pip or the OS package manager. It fails executing the resulting binary if libraries are only installed in a virtual environment (venv). --- .gitignore | 4 ++-- Makefile | 16 ++++++++++++++++ bin/.gitkeep | 0 fgg | 1 + 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 bin/.gitkeep diff --git a/.gitignore b/.gitignore index e2327ca..c658cd6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ .idea -fgg.build +out photo/* photos/* tmp/*.dump.json venv -fgg.bin +bin/fgg fgg.iml \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7e02451 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +all: + nuitka3 --follow-imports --output-dir=./out/ -o ./bin/fgg fgg + +clean: + rm -rf ./bin/fgg + rm -rf ./out + +flushcache: + rm -rf ./cache/* + +flushphotos: + rm -rf ./photo/* + rm -rf ./photos/* + +gallery: + ./bin/fgg diff --git a/bin/.gitkeep b/bin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/fgg b/fgg index ee2468e..0bdf716 100755 --- a/fgg +++ b/fgg @@ -2,6 +2,7 @@ # fgg - A free gallery generator for static site generators like Hugo, Jekyll, # Nikola etc. using Flickr as data source. +# Source repository: https://git.unixpeople.org/hanez/fgg # Copyright (c) 2022 Johannes Findeisen #