mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
add workflow
This commit is contained in:
15
.github/workflows/build-release.yml
vendored
Normal file
15
.github/workflows/build-release.yml
vendored
Normal 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
|
||||||
@@ -4,7 +4,7 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
from multiprocessing import Pool
|
from multiprocessing import Pool, freeze_support
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, List, Tuple
|
from typing import Dict, List, Tuple
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ from modules.generate_html import list_folder, EXCLUDES
|
|||||||
# Constants
|
# Constants
|
||||||
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
||||||
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
|
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||||
VERSION = "2.2.4"
|
VERSION = "2.2.5"
|
||||||
RAW_EXTENSIONS = [
|
RAW_EXTENSIONS = [
|
||||||
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
|
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
|
||||||
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
|
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
|
||||||
@@ -221,4 +221,5 @@ def main() -> None:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
freeze_support()
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -2,5 +2,6 @@ CairoSVG==2.7.1
|
|||||||
Jinja2==3.1.4
|
Jinja2==3.1.4
|
||||||
numpy==2.0.0
|
numpy==2.0.0
|
||||||
pillow==10.4.0
|
pillow==10.4.0
|
||||||
|
pyinstaller==6.9.0
|
||||||
rich-argparse==1.5.2
|
rich-argparse==1.5.2
|
||||||
tqdm==4.66.4
|
tqdm==4.66.4
|
||||||
Reference in New Issue
Block a user