Update build scripts, entry points, and packaged-path detection for the new toolchain. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
661 B
Bash
Executable File
23 lines
661 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
version="$(bun --eval "console.log(JSON.parse(await Bun.file('package.json').text()).version)")"
|
|
output_dir="app_dist/linux"
|
|
binary="${output_dir}/farmcontrol-server"
|
|
|
|
common_fpm_args=(
|
|
-f
|
|
-s dir
|
|
-n farmcontrol-server
|
|
-p "${output_dir}/"
|
|
-v "${version}"
|
|
--after-install packaging/linux/after-install.sh
|
|
--before-remove packaging/linux/before-remove.sh
|
|
--after-remove packaging/linux/after-remove.sh
|
|
"${binary}=/usr/bin/farmcontrol-server"
|
|
packaging/linux/farmcontrol-server.service=/lib/systemd/system/farmcontrol-server.service
|
|
)
|
|
|
|
fpm -t deb "${common_fpm_args[@]}"
|
|
fpm -t rpm "${common_fpm_args[@]}"
|