Skip to content

Commit

Permalink
Reorganize structure
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed Apr 27, 2024
1 parent fbf07c2 commit bc147e2
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 49,075 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
goos: linux
goarch: amd64
ldflags: -s -w
project_path: "./cmd/filediver-cli"
binary_name: "filediver"
asset_name: "filediver-linux-amd64"
extra_files: LICENSE README.md
Expand All @@ -36,6 +37,7 @@ jobs:
goos: windows
goarch: amd64
ldflags: -s -w
project_path: "./cmd/filediver-cli"
binary_name: "filediver"
asset_name: "filediver-windows-amd64"
extra_files: LICENSE README.md ffmpeg.exe
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ This app builds on a lot of work from other people. This includes:

Some useful discussion on the topic of HD2 resource extraction: https://reshax.com/topic/507-helldivers-2-model-extraction-help/

## Hacking
- Install [Go](https://go.dev/dl/)
- `go run ./cmd/filediver-cli`

## License
Copyright (c) Darwin Schuppan

Expand Down
6 changes: 2 additions & 4 deletions main.go → cmd/filediver-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ import (

"github.com/xypwn/filediver/app"
"github.com/xypwn/filediver/exec"
"github.com/xypwn/filediver/hashes"
"github.com/xypwn/filediver/stingray"
)

//go:embed hashes.txt
var knownHashesStr string

func main() {
prt := app.NewPrinter(
supportscolor.Stderr().SupportsColor,
Expand Down Expand Up @@ -102,7 +100,7 @@ extractor config:
}

if *knownHashesPath == "" {
a.AddHashesFromString(knownHashesStr)
a.AddHashesFromString(hashes.Hashes)
} else {
if err := a.AddHashesFromFile(*knownHashesPath); err != nil {
prt.Fatalf("%v", err)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bc147e2

Please sign in to comment.