Skip to content

Commit

Permalink
feat: Add a justfile for easy building and copying
Browse files Browse the repository at this point in the history
  • Loading branch information
bananasov committed Dec 10, 2023
1 parent 37e70d1 commit 4bbb073
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
set shell := ["sh", "-c"]
set windows-shell := ["pwsh.exe", "-c"]

alias b := build
alias c := copy

export COMPANY_DIRECTORY := "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Lethal Company"
export FRAMEWORK := "net47"
export RELEASE_TARGET := "Debug"

current_directory := invocation_directory()
binary_directory := current_directory / "LethalVibrations" / "bin" / RELEASE_TARGET / FRAMEWORK

dll_file := "LethalVibrations.dll"
pdb_file := "LethalVibrations.pdb"

bepinex_plugin_directory := COMPANY_DIRECTORY / "BepInEx" / "plugins"

test:
echo "{{bepinex_plugin_directory}}"

build:
dotnet build -c {{RELEASE_TARGET}}

copy: build
cp "{{binary_directory / dll_file}}" "{{bepinex_plugin_directory / dll_file}}"
cp "{{binary_directory / pdb_file}}" "{{bepinex_plugin_directory / pdb_file}}"

0 comments on commit 4bbb073

Please sign in to comment.