Builds: any mix of targets and flags, Windows icon, router upload per file

icon.ico is required by tauri-build for the Windows resource; made from the
existing icon.png. Docs describe build.sh (gitignored): targets combine freely
under one build number, -da makes only the APK debug (the phone runs
debug-signed builds), and BUILD_NUMBER on the router is written only with the
APK, since the phone's OTA reads it and would otherwise offer the old APK.
This commit is contained in:
4aiman 2026-10-19 23:05:54 +03:00
commit f2d39459e6
3 changed files with 19 additions and 10 deletions

View file

@ -75,15 +75,22 @@
./build.sh linux # ПК Linux: .deb, .rpm, .AppImage
./build.sh windows # ПК Windows: NSIS-установщик (кросс, mingw)
./build.sh macos # ПК macOS: .app в zip, Intel + Apple Silicon (кросс, osxcross)
./build.sh release # linux + windows + macos
./build.sh upload # release APK + все ПК под одним номером -> роутер
./build.sh pc # linux + windows + macos
./build.sh all # android + pc
./build.sh -da upload # = -u all, APK debug (как на телефоне), ПК release -> роутер
./build.sh -u android windows # любая комбинация целей и флагов
```
`upload` кладёт в `http://192.168.1.1:88/baldav/`: `baldav.apk`, `baldav-linux-amd64.deb`,
`baldav-linux-x86_64.rpm`, `baldav-linux-x86_64.AppImage`, `baldav-windows-x64-setup.exe`,
`baldav-macos-x64.zip`, `baldav-macos-arm64.zip`; `BUILD_NUMBER` пишется последним. Если хоть
одна платформа не собралась - не выкладывается ничего. Кросс-сборка под macOS берёт osxcross из
`$OSXCROSS` (по умолчанию `/mnt/02F6E7F6F6E7E7BD/osxcross`, SDK 12.3 из fpcupdeluxe).
Цели и флаги комбинируются как угодно; за запуск номер сборки растёт один раз и общий для всех
целей. `-d` - debug для всего, `-da` - debug только для APK. `-u` выкладывает в
`http://192.168.1.1:88/baldav/` всё, что собралось в этом запуске: `baldav.apk`,
`baldav-linux-amd64.deb`, `baldav-linux-x86_64.rpm`, `baldav-linux-x86_64.AppImage`,
`baldav-windows-x64-setup.exe`, `baldav-macos-x64.zip`, `baldav-macos-arm64.zip`, рядом с каждым
`<файл>.build` с номером сборки. `BUILD_NUMBER` (по нему телефон проверяет OTA) пишется только
вместе с APK, иначе телефону предложилось бы «обновление» на старый APK; APK, как и раньше, уходит
ещё и на VPS. Упавшие цели не мешают выкладке остальных и перечисляются в итоге. Кросс-сборка под
macOS берёт osxcross из `$OSXCROSS` (по умолчанию `/mnt/02F6E7F6F6E7E7BD/osxcross`, SDK 12.3 из
fpcupdeluxe); `.app` собирается скриптом, т.к. бандлер Tauri на Linux его пропускает.
## Версия и трассируемость сборки