Reorganizing paths
This commit is contained in:
parent
e9d204daab
commit
34cb856dd4
249 changed files with 118 additions and 294 deletions
49
scripts/build.sh
Executable file
49
scripts/build.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# LogarithmPlotter - 2D plotter software to make BODE plots, sequences and distribution functions.
|
||||
# Copyright (C) 2021-2024 Ad5001
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
# This script builds a dist version of LogarithmPlotter
|
||||
|
||||
DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$DIR/.." || exit 1
|
||||
|
||||
box() {
|
||||
len=${#1}
|
||||
echo "┌─$(printf '─%.0s' $(seq 1 "$len"))─┐"
|
||||
echo "│ $1 │"
|
||||
echo "└─$(printf '─%.0s' $(seq 1 "$len"))─┘"
|
||||
}
|
||||
|
||||
rm -rf build
|
||||
mkdir -p build/runtime-pyside6
|
||||
|
||||
# Copy python
|
||||
box "Copying pyside6 python runtime..."
|
||||
cp -r runtime-pyside6/{setup.py,LogarithmPlotter} build/runtime-pyside6
|
||||
|
||||
box "Building ecmascript modules..."
|
||||
mkdir -p build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js
|
||||
cd common && (npm run build || exit) && cd ..
|
||||
|
||||
box "Building translations..."
|
||||
cd assets/i18n/ && (bash release.sh || exit) && cd ../../
|
||||
mkdir -p build/runtime-pyside6/LogarithmPlotter/i18n && cp assets/i18n/*.qm build/runtime-pyside6/LogarithmPlotter/i18n/
|
||||
|
||||
box "Building icons..."
|
||||
cp -r assets/icons build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/
|
||||
cp assets/logarithmplotter.svg build/runtime-pyside6/LogarithmPlotter/
|
Loading…
Add table
Add a link
Reference in a new issue