Update meta scripts
This commit is contained in:
parent
3109f510fd
commit
972263a9d4
9 changed files with 82 additions and 17 deletions
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
Displaying pixel-perfect images on esoteric devices.
|
||||
|
||||
## Developing
|
||||
|
||||
After cloning the repo, run `meta/build-all` once. Some parts of the project use
|
||||
files from other parts of the project (e.g. the thermal printer includes the
|
||||
typst plugin wasm file in its binary). The build script produces these
|
||||
intermediate artifacts.
|
||||
|
||||
## Thermal printer ideas
|
||||
|
||||
- Appointments, tasks for the day
|
||||
|
|
|
|||
32
meta/build-all
Executable file
32
meta/build-all
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set_color --bold yellow
|
||||
echo "##################"
|
||||
echo "## typst plugin ##"
|
||||
echo "##################"
|
||||
set_color normal
|
||||
|
||||
./meta/build-typst-plugin
|
||||
or return 1
|
||||
|
||||
echo
|
||||
|
||||
set_color --bold yellow
|
||||
echo "########################"
|
||||
echo "## thermal printer ui ##"
|
||||
echo "########################"
|
||||
set_color normal
|
||||
|
||||
./meta/build-thermal-printer-ui
|
||||
or return 1
|
||||
|
||||
echo
|
||||
|
||||
set_color --bold yellow
|
||||
echo "#####################"
|
||||
echo "## thermal printer ##"
|
||||
echo "#####################"
|
||||
set_color normal
|
||||
|
||||
./meta/build-thermal-printer
|
||||
or return 1
|
||||
8
meta/build-thermal-printer
Executable file
8
meta/build-thermal-printer
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
pushd showbits-thermal-printer
|
||||
|
||||
cargo build --release
|
||||
or return 1
|
||||
|
||||
popd
|
||||
11
meta/build-thermal-printer-ui
Executable file
11
meta/build-thermal-printer-ui
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
pnpm install --recursive
|
||||
or return 1
|
||||
|
||||
pushd showbits-thermal-printer-ui
|
||||
|
||||
pnpm build
|
||||
or return 1
|
||||
|
||||
popd
|
||||
|
|
@ -1,22 +1,11 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set_color --bold yellow
|
||||
echo "#############"
|
||||
echo "## Prepare ##"
|
||||
echo "#############"
|
||||
set_color
|
||||
|
||||
rustup target add wasm32-unknown-unknown
|
||||
or return 1
|
||||
|
||||
pushd showbits-typst-plugin
|
||||
|
||||
echo
|
||||
|
||||
set_color --bold yellow
|
||||
echo "###########"
|
||||
echo "## Build ##"
|
||||
echo "###########"
|
||||
set_color
|
||||
|
||||
cargo build --release --target wasm32-unknown-unknown
|
||||
or return 1
|
||||
|
||||
popd
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
cargo clippy
|
||||
|
||||
pushd showbits-typst-plugin
|
||||
cargo clippy
|
||||
popd
|
||||
|
||||
pushd showbits-thermal-printer-ui
|
||||
pnpm check
|
||||
popd
|
||||
|
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
cargo clean
|
||||
|
||||
pushd showbits-typst-plugin
|
||||
cargo clean
|
||||
popd
|
||||
|
||||
rm -rf node_modules
|
||||
rm -rf showbits-thermal-printer-ui/node_modules
|
||||
|
|
|
|||
|
|
@ -6,7 +6,13 @@ set_color --bold yellow
|
|||
echo "###########"
|
||||
echo "## Build ##"
|
||||
echo "###########"
|
||||
set_color
|
||||
set_color normal
|
||||
|
||||
./meta/build-typst-plugin
|
||||
or return 1
|
||||
|
||||
./meta/build-thermal-printer-ui
|
||||
or return 1
|
||||
|
||||
cross build --release \
|
||||
--package showbits-thermal-printer \
|
||||
|
|
@ -19,7 +25,7 @@ set_color --bold yellow
|
|||
echo "############"
|
||||
echo "## Upload ##"
|
||||
echo "############"
|
||||
set_color
|
||||
set_color normal
|
||||
|
||||
rsync -vP \
|
||||
meta/spinch/showbits-thermal-printer.service \
|
||||
|
|
@ -34,7 +40,7 @@ set_color --bold yellow
|
|||
echo "#############"
|
||||
echo "## Restart ##"
|
||||
echo "#############"
|
||||
set_color
|
||||
set_color normal
|
||||
|
||||
ssh root@spinch "\
|
||||
systemctl daemon-reload \
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"check": "vue-tsc -b",
|
||||
"build": "vue-tsc -b && vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue