add workflow

This commit is contained in:
2024-07-17 13:34:24 +02:00
committed by Flo Greistorfer
parent b869c8da7b
commit 2db44c7673
3 changed files with 19 additions and 2 deletions

15
.github/workflows/build-release.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: build-release
run-name: build-release
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: install dependancies
run: pip install -r requirements.txt
- name: build package
run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder

View File

@@ -4,7 +4,7 @@ import re
import shutil
import fnmatch
import urllib.parse
from multiprocessing import Pool
from multiprocessing import Pool, freeze_support
from pathlib import Path
from typing import Dict, List, Tuple
@@ -19,7 +19,7 @@ from modules.generate_html import list_folder, EXCLUDES
# Constants
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
VERSION = "2.2.4"
VERSION = "2.2.5"
RAW_EXTENSIONS = [
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
@@ -221,4 +221,5 @@ def main() -> None:
if __name__ == "__main__":
freeze_support()
main()

View File

@@ -2,5 +2,6 @@ CairoSVG==2.7.1
Jinja2==3.1.4
numpy==2.0.0
pillow==10.4.0
pyinstaller==6.9.0
rich-argparse==1.5.2
tqdm==4.66.4