Skip to content

Commit 4ab0463

Browse files
author
AI-Spawn
committed
Fixed windows unwrap
1 parent 4ec736e commit 4ab0463

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*.mov
1212
*.env
1313
*.txt
14+
*.exe
1415

1516
.idea
1617
build/

argparser.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ func loadDefaults() Args {
7676
}
7777

7878
func parseArgs() Args {
79-
//_a, _ := defaults.ReadFile("defaults/default_timestamps.txt")
80-
//a:= string(_a)
81-
//fmt.Println(a)
8279
defArgs := loadDefaults()
8380
if defArgs.CheckForUpdates {
8481
checkForUpdates()

checkForUpdates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Release struct {
1616
}
1717

1818
func checkForUpdates() {
19-
currentSemVer := "v5.0.3"
19+
currentSemVer := "v5.0.4"
2020

2121
logM(1, "Checking for Updates...")
2222
endpointUrl := "https://api.github.com/repos/Matamata-Animator/Matamata/releases?per_page=1"

helpers.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ func unwrapHelper(cachepath string, relpath string, entries []fs.DirEntry) {
4646
//embed path uses forward slash
4747
embedPath := relpath + "/" + e.Name()
4848
absolutePath := filepath.Join(cachepath, embedPath)
49+
logM(4, "embedding", embedPath, "to", absolutePath)
4950
if e.IsDir() {
5051
os.MkdirAll(absolutePath, 0777)
51-
newPath := filepath.Join(relpath, e.Name())
52-
childEntries, _ := defaults.ReadDir(newPath)
53-
unwrapHelper(cachepath, newPath, childEntries)
52+
childEntries, _ := defaults.ReadDir(embedPath)
53+
logM(4, "calling unwrap recursively", cachepath, embedPath, childEntries)
54+
unwrapHelper(cachepath, embedPath, childEntries)
5455
} else {
5556
embeddedFile, _ := defaults.Open(embedPath)
5657
defer embeddedFile.Close()

0 commit comments

Comments
 (0)