p2p/Justfile
Lucas Schwiderski f905afb2b2
All checks were successful
build Build for the target platform
Rename plugin from template
2025-05-04 23:07:02 +02:00

27 lines
855 B
Makefile

fly_target := "main"
game_dir := env("local_game_dir")
build:
docker run \
--rm \
-t \
--user "$(id -u):$(id -g)" \
-v ./:/src/plugin \
registry.sclu1034.dev/rust-xwin-ci \
cargo build -Zbuild-std --target x86_64-pc-windows-msvc
cp target/x86_64-pc-windows-msvc/debug/dt_p2p.dll "{{game_dir}}/binaries/plugins/dt_p2p_pluginw64_release.dll"
log:
#!/bin/sh
exec bat "$log_dir/$(\ls $log_dir | tail -1)"
set-base-pipeline:
fly -t {{fly_target}} set-pipeline \
--pipeline dt-p2p \
--config .ci/pipelines/set-pr-pipelines.yml \
-v forgejo_url=https://git.sclu1034.dev \
-v forgejo_api_key=${FORGEJO_API_KEY} \
-v registry_user=${REGISTRY_USER} \
-v registry_password=${REGISTRY_PASSWORD} \
-v owner=bitsquid_dt \
-v repo=p2p