generated from ensaremirerol/nextjs-fastapi-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
57 lines (52 loc) · 1.62 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
install-dev:
@echo "Creating virtual environment..."
uv sync --all-extras --dev
install:
@echo "Creating virtual environment..."
uv sync
test: install-dev
@echo "Running tests..."
uv run coverage run -m unittest discover -v -s ./test -p "*_test.py"
package-mac: install-dev
@echo "Packaging for macOS..."
rm -rf build dist public bin
@echo "Downloading external binaries..."
mkdir -p bin
curl -L https://github.com/RMLio/rmlmapper-java/releases/download/v7.2.0/rmlmapper-7.2.0-r374-all.jar -o bin/mapper.jar
npm run frontend:prod
uv sync
uv run nuitka \
--standalone \
--product-version=0.1.0 \
--file-version=0.1.0 \
--output-dir=dist \
--include-data-dir=public=public \
--include-data-dir=bin=bin \
--macos-create-app-bundle \
--product-name=RDFCraft \
--assume-yes-for-downloads \
--deployment \
main.py
mv dist/main.app dist/RDFCraft.app
package-win: install-dev
@echo "Packaging for Windows..."
rm -rf build dist public bin
@echo "Downloading external binaries..."
mkdir -p bin
curl -L https://github.com/RMLio/rmlmapper-java/releases/download/v7.2.0/rmlmapper-7.2.0-r374-all.jar -o bin/mapper.jar
npm run frontend:prod
uv sync
.venv/Scripts/python -m nuitka \
--standalone \
--onefile \
--product-version=0.1.0 \
--file-version=0.1.0 \
--output-dir=dist \
--include-data-dir=public=public \
--include-data-dir=bin=bin \
--windows-disable-console \
--product-name=RDFCraft \
--assume-yes-for-downloads \
--deployment \
main.py
mv dist/main.exe dist/RDFCraft.exe