Skip to content

Commit

Permalink
cleanup of build.sh; try build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Dec 27, 2024
1 parent 4f987ab commit 20a7ce2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 13 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,27 @@ echo ../Heavy/usr/bin/make.exe GCC_PATH=../Heavy/usr/bin> build.sh
..\Heavy\usr\bin\bash.exe --login build.sh
cd ..

:: Pre-build Owl libs
cd OwlProgram

echo ../Heavy/usr/bin/make.exe ../Heavy/bin/make libs PLATFORM=OWL2 TOOLROOT=../Heavy/bin/ > build.sh
..\Heavy\usr\bin\bash.exe --login build.sh
cd ..

:: Copy all libs to toolchain
xcopy /E /H /C /I libdaisy Heavy\usr\lib\libdaisy
xcopy /E /H /C /I OwlProgram Heavy\usr\lib\OwlProgram
xcopy /E /H /C /I dpf Heavy\usr\lib\dpf
xcopy /E /H /C /I dpf-widgets Heavy\usr\lib\dpf-widgets

:: Download OWL FirmwareSender from CI
powershell -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/Wasted-Audio/FirmwareSender_plugdata/releases/download/plugdata/FirmwareSender-windows.zip -OutFile FirmwareSender.zip"
powershell -Command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive FirmwareSender -Force -DestinationPath .\Heavy\usr\lib\OwlProgram\Tools"

:: Package heavy using pyinstaller
python -m ensurepip
python -m pip install poetry poetry-pyinstaller-plugin


cd hvcc
poetry build
cd ..
Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ popd
# Pre-build OWL libs (only OWL2 target for now)
pushd OwlProgram
../Heavy/bin/make libs PLATFORM=OWL2 TOOLROOT=../Heavy/bin/
# rm -rf Libraries/CMSIS
# rm -rf Libraries/DaisySP
rm -rf Libraries/DaisySP
rm -f Libraries/libdaisysp.a
popd

# Pre-build OWL FirmwareSender
# Download OWL FirmwareSender from CI
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
FS_URL="https://github.com/Wasted-Audio/FirmwareSender_plugdata/releases/download/plugdata/FirmwareSender-ubuntu.zip"
curl -fSL -A "Mozilla/4.0" -o FirmwareSender-ubuntu.zip $FS_URL
Expand Down Expand Up @@ -187,7 +187,7 @@ mkdir -p Heavy/bin/Heavy
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
mv ./hvcc/dist/pyinstaller/manylinux_2_31_x86_64/Heavy Heavy/bin/Heavy/
elif [[ "$OSTYPE" == "darwin"* ]]; then
mv ./hvcc/dist/pyinstaller/macosx_12_0_x86_64/Heavy Heavy/bin/Heavy/
mv ./hvcc/dist/pyinstaller/macosx_13_0_x86_64/Heavy Heavy/bin/Heavy/
fi

cp VERSION ./Heavy/VERSION

0 comments on commit 20a7ce2

Please sign in to comment.