fix: Docker requires pre-built Linux binary (cannot cross-compile on Windows)
CI / test (push) Failing after 16s
CI / test (push) Failing after 16s
This commit is contained in:
+3
-11
@@ -50,21 +50,13 @@ state:
|
||||
println(' Wrote: ${target_dir}/dashboard.html')
|
||||
}
|
||||
|
||||
// Copy Dockerfile and build Linux binary
|
||||
// Dockerfile for reference (binary must be built separately)
|
||||
if os.exists('Dockerfile') {
|
||||
os.cp('Dockerfile', '${target_dir}/Dockerfile') or {}
|
||||
println(' Wrote: ${target_dir}/Dockerfile')
|
||||
}
|
||||
// Cross-compile Linux binary
|
||||
println(' Building Linux binary (v -os linux)...')
|
||||
build_result := os.execute('v -os linux -o ${target_dir}/ntfy-bridge .')
|
||||
if build_result.exit_code != 0 {
|
||||
println(' Warning: Could not cross-compile Linux binary.')
|
||||
println(' ${build_result.output}')
|
||||
println(' You will need a Linux binary named "ntfy-bridge" in ${target_dir}/')
|
||||
} else {
|
||||
println(' Built: ${target_dir}/ntfy-bridge')
|
||||
}
|
||||
println(' Note: Place a Linux binary named "ntfy-bridge" in ${target_dir}/ to build.')
|
||||
println(' Build: v -os linux -o ${target_dir}/ntfy-bridge . (requires Linux or WSL)')
|
||||
|
||||
// docker-compose.yml
|
||||
mut compose := 'services:
|
||||
|
||||
Reference in New Issue
Block a user