Added packaging script
Update .gitignore and package-for-release.cmd
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
# Build artifacts
|
# Build artifacts
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
*.tar
|
||||||
|
|
||||||
# NodeJS' BS
|
# NodeJS' BS
|
||||||
node_modules/
|
node_modules/
|
||||||
|
31
scripts/package-for-release.cmd
Normal file
31
scripts/package-for-release.cmd
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
pushd %CD%
|
||||||
|
|
||||||
|
:: Going into the project's directory
|
||||||
|
cd /D "%~dp0"
|
||||||
|
call delete-pycache.cmd
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo Creating Release Package
|
||||||
|
echo ------------------------
|
||||||
|
|
||||||
|
echo %CD%
|
||||||
|
|
||||||
|
del release.tar 2> nul
|
||||||
|
|
||||||
|
7z a "release.tar" ^
|
||||||
|
-xr!*.pdn ^
|
||||||
|
-xr!*.ai ^
|
||||||
|
data/ ^
|
||||||
|
static/ ^
|
||||||
|
templates/ ^
|
||||||
|
website/ ^
|
||||||
|
.dockerignore ^
|
||||||
|
.env ^
|
||||||
|
app.py ^
|
||||||
|
Dockerfile ^
|
||||||
|
requirements.txt
|
||||||
|
|
||||||
|
popd
|
Reference in New Issue
Block a user