Skip to content

Commit

Permalink
linux build scripts that might work maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
nealol committed Apr 16, 2022
1 parent a4b7a4f commit 66a8c3c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./with-env.sh ./env/windows.env go build -o "./dist/lilith-launcher-windows-s1.exe" main.go
./with-env.sh ./env/linux.env go build -o "./dist/lilith-launcher-linux-s1" main.go
./with-env.sh ./env/macos.env go build -o "./dist/lilith-launcher-macos-s1" main.go
./with-env.sh ./env/m1.env go build -o "./dist/lilith-launcher-m1-s1" main.go
8 changes: 8 additions & 0 deletions with-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ENV_FILE="$1"
CMD=${@:2}

set -o allexport
source $ENV_FILE
set +o allexport

$CMD

0 comments on commit 66a8c3c

Please sign in to comment.