diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-20 19:56:29 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-20 19:56:29 -0500 |
| commit | 971cc396e1d01f53f65a86278fd0ac4490565335 (patch) | |
| tree | 19d0a1e861590b5058ca682c2f5a33828414cf3d | |
| parent | 9ff47bdc17c70f87c78520d0636b2ff22918a408 (diff) | |
| download | steam-export-971cc396e1d01f53f65a86278fd0ac4490565335.tar.gz steam-export-971cc396e1d01f53f65a86278fd0ac4490565335.tar.xz | |
Reorganize. Update to use go modules.
| -rwxr-xr-x | Build.sh | 15 | ||||
| -rw-r--r-- | archive/archive.go (renamed from lib/archive/archive.go) | 0 | ||||
| -rw-r--r-- | archive/unarchive.go (renamed from lib/archive/unarchive.go) | 0 | ||||
| -rw-r--r-- | cmd/cli/main.go (renamed from cli.go) | 5 | ||||
| -rw-r--r-- | config/config.go (renamed from lib/config/config.go) | 0 | ||||
| -rw-r--r-- | config/config_unix.go (renamed from lib/config/config_unix.go) | 0 | ||||
| -rw-r--r-- | config/config_windows.go (renamed from lib/config/config_windows.go) | 0 | ||||
| -rw-r--r-- | go.mod | 5 | ||||
| -rw-r--r-- | go.sum | 3 | ||||
| -rw-r--r-- | steam/package.go (renamed from lib/steam/package.go) | 2 | ||||
| -rw-r--r-- | steam/steam.go (renamed from lib/steam/steam.go) | 0 | ||||
| -rw-r--r-- | steam/unix.go (renamed from lib/steam/unix.go) | 0 | ||||
| -rw-r--r-- | steam/windows.go (renamed from lib/steam/windows.go) | 0 |
13 files changed, 21 insertions, 9 deletions
@@ -1,22 +1,25 @@ #!/bin/sh - +set -e +set -x if ! [ -d bin ] ; then mkdir bin fi -go build -o bin/steam-export . +commands=cli + +for cmd in $commands ; do export GOOS=windows export GOARCH="386" -go build -o bin/steam-export-$GOOS-$GOARCH.exe . +go build -o bin/steam-export-$GOOS-$GOARCH.exe ./cmd/$cmd export GOOS=windows export GOARCH=amd64 -go build -o bin/steam-export-$GOOS-$GOARCH.exe . +go build -o bin/steam-export-$GOOS-$GOARCH.exe ./cmd/$cmd export GOOS=linux export GOARCH=amd64 -go build -o bin/steam-export-$GOOS-$GOARCH . +go build -o bin/steam-export-$GOOS-$GOARCH ./cmd/$cmd -cp bin/* /Fishtank/Mitch/SteamDrive/scripts/ +done diff --git a/lib/archive/archive.go b/archive/archive.go index 639a864..639a864 100644 --- a/lib/archive/archive.go +++ b/archive/archive.go diff --git a/lib/archive/unarchive.go b/archive/unarchive.go index 8a5617e..8a5617e 100644 --- a/lib/archive/unarchive.go +++ b/archive/unarchive.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - "git.riedstra.us/mitch/steam-export/lib/config" - "git.riedstra.us/mitch/steam-export/lib/steam" + "riedstra.dev/mitch/steam-export/config" + "riedstra.dev/mitch/steam-export/steam" ) var ( @@ -193,3 +193,4 @@ func main() { printHelp() } } + diff --git a/lib/config/config.go b/config/config.go index 839acbf..839acbf 100644 --- a/lib/config/config.go +++ b/config/config.go diff --git a/lib/config/config_unix.go b/config/config_unix.go index 8be1967..8be1967 100644 --- a/lib/config/config_unix.go +++ b/config/config_unix.go diff --git a/lib/config/config_windows.go b/config/config_windows.go index 39b6b6c..39b6b6c 100644 --- a/lib/config/config_windows.go +++ b/config/config_windows.go @@ -0,0 +1,5 @@ +module riedstra.dev/mitch/steam-export + +go 1.15 + +require gopkg.in/yaml.v2 v2.3.0 @@ -0,0 +1,3 @@ +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/lib/steam/package.go b/steam/package.go index 2e25994..a73a6bc 100644 --- a/lib/steam/package.go +++ b/steam/package.go @@ -2,7 +2,7 @@ package steam import ( // "fmt" - "git.riedstra.us/mitch/steam-export/lib/archive" + "riedstra.dev/mitch/steam-export/archive" "os" "path/filepath" ) diff --git a/lib/steam/steam.go b/steam/steam.go index ea27e5a..ea27e5a 100644 --- a/lib/steam/steam.go +++ b/steam/steam.go diff --git a/lib/steam/unix.go b/steam/unix.go index caa4b43..caa4b43 100644 --- a/lib/steam/unix.go +++ b/steam/unix.go diff --git a/lib/steam/windows.go b/steam/windows.go index 17fe62c..17fe62c 100644 --- a/lib/steam/windows.go +++ b/steam/windows.go |
