From e9dada60210caf59da12820e8cd0b05e62d11a63 Mon Sep 17 00:00:00 2001 From: Duduf Date: Tue, 11 Oct 2022 18:30:09 +0200 Subject: [PATCH] 0.6.1 --- bluik/layers.py | 4 ++-- tools/build.bat | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 tools/build.bat diff --git a/bluik/layers.py b/bluik/layers.py index 1094477..7fe5823 100644 --- a/bluik/layers.py +++ b/bluik/layers.py @@ -157,8 +157,8 @@ def create_layer(context, name, width, height, containing_group=None): move_to_group( plane, containing_group) # Location and rotation - plane.rotation_euler.x = -pi/2 - plane.rotation_euler.y = pi + plane.rotation_euler.x = pi/2 + plane.rotation_euler.y = 0 plane.rotation_euler.z = 0 plane.lock_location[0] = False plane.lock_location[1] = True diff --git a/tools/build.bat b/tools/build.bat new file mode 100644 index 0000000..2ef1ac3 --- /dev/null +++ b/tools/build.bat @@ -0,0 +1,38 @@ +@echo off + +:: The path to the build folder +SET "build_path=build" +:: 7zip CLI path +SET "seven_zip=C:\Program Files\7-Zip" + +:: The repo and dependencies +SET repo_path=%~dp0.. +SET "bluik_path=%repo_path%\bluik" +SET "dublf_path=%repo_path%\..\DuBLF\dublf" +SET "oco_path=%repo_path%\..\..\OCO\ocopy" + +echo Building: %repo_path% +echo To: %build_path% + +:: remove previous version +for /r "%build_path%" /d %%a IN (*) do IF /i "%%~nxa"=="bluik" rd /s /q "%%a" +rd "%build_path%\bluik" + +:: copy main files +echo Copying: "%bluik_path%\" +md "%build_path%\bluik" +for /f %%a IN ('dir /b "%bluik_path%\*.py"') do copy "%bluik_path%\%%a" "%build_path%\bluik\%%a" + +:: copy dublf +echo Copying: "%dublf_path%\" +md "%build_path%\bluik\dublf" +for /f %%a IN ('dir /b "%dublf_path%\*.py"') do copy "%dublf_path%\%%a" "%build_path%\bluik\dublf\%%a" + +:: copy oco +echo Copying: "%oco_path%\" +md "%build_path%\bluik\ocopy" +for /f %%a IN ('dir /b "%oco_path%\*.py"') do copy "%oco_path%\%%a" "%build_path%\bluik\ocopy\%%a" + +:: zip +del "%build_path%\bluik.zip" +"%seven_zip%\7z.exe" a "%build_path%\bluik.zip" ".\%build_path%\*"