Commit 07c1ff74db
07c1ff74dbd1f9893d0ec70fc4ae1f6ebe329252
parent: 1698b06bc8
Unsigned
Wraient <wraient.911@gmail.com> · 2024-11-07 11:27 UTC
People ***REALLY*** wanna quit apparently :)
Layout: unified · split
Build/buildlinux
+2 −4
| @@ -1,4 +1,2 @@ |
| 1 | outputDir="Build" |
1 | CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o curd -ldflags="-s -w" -trimpath cmd/curd/main.go |
| 2 | mkdir -p "$outputDir" |
2 | upx --best --ultra-brute curd\ No newline at end of file |
| 3 | CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "$outputDir/curd" -ldflags="-s -w" -trimpath cmd/curd/main.go |
| |
| 4 | upx --best --ultra-brute "$outputDir/curd"\ No newline at end of file |
| |
Build/buildwindows
+1 −3
| @@ -1,3 +1 @@ |
| 1 | outputDir="Build" |
1 | GOOS=windows GOARCH=amd64 go build -o curd.exe -ldflags "-s -w" ./cmd/curd/main.go\ No newline at end of file |
| 2 | mkdir -p "$outputDir" |
| |
| 3 | GOOS=windows GOARCH=amd64 go build -o "$outputDir/curd.exe" -ldflags "-s -w" ./cmd/curd/main.go\ No newline at end of file |
| |
Build/curd-windows-build.iss
+3 −3
| @@ -1,6 +1,6 @@ |
| 1 | [Setup]
|
1 | [Setup]
|
| 2 | AppName=Curd Installer
|
2 | AppName=Curd Installer
|
| 3 | AppVersion=0.1 |
3 | AppVersion=0.0.10
|
| 4 | DefaultDirName={pf}\Curd
|
4 | DefaultDirName={pf}\Curd
|
| 5 | DefaultGroupName=Curd
|
5 | DefaultGroupName=Curd
|
| 6 | AllowNoIcons=yes
|
6 | AllowNoIcons=yes
|
| @@ -15,8 +15,8 @@ Name: "desktopicon"; Description: "Create a &desktop shortcut"; GroupDescription |
| 15 |
|
15 |
|
| 16 | [Files]
|
16 | [Files]
|
| 17 | ; Copy the Curd executable to the install directory
|
17 | ; Copy the Curd executable to the install directory
|
| 18 | Source: "Z:releases/curd-0.1/windows/curd.exe"; DestDir: "{app}"; Flags: ignoreversion
|
18 | Source: "Z:releases/curd-0.0.10/windows/curd.exe"; DestDir: "{app}"; Flags: ignoreversion
|
| 19 | Source: "mpv.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
19 | Source: "Z:/home/wraient/Projects/curd/Build/mpv.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
|
| 20 |
|
20 |
|
| 21 | [Icons]
|
21 | [Icons]
|
| 22 | ; Create the application icon in the Start Menu
|
22 | ; Create the application icon in the Start Menu
|
internal/curd.go
+9
| @@ -497,6 +497,11 @@ func AddNewAnime(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseA |
| 497 | } else { |
497 | } else { |
| 498 | anilistSelectedOption, err = DynamicSelect(animeMap, false) |
498 | anilistSelectedOption, err = DynamicSelect(animeMap, false) |
| 499 | } |
499 | } |
| |
500 | |
| |
501 | if anilistSelectedOption.Key == "-1" { |
| |
502 | ExitCurd(nil) |
| |
503 | } |
| |
504 | |
| 500 | if err != nil { |
505 | if err != nil { |
| 501 | Log(fmt.Sprintf("No anime available: %v", err), logFile) |
506 | Log(fmt.Sprintf("No anime available: %v", err), logFile) |
| 502 | ExitCurd(fmt.Errorf("No anime available")) |
507 | ExitCurd(fmt.Errorf("No anime available")) |
| @@ -727,6 +732,10 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni |
| 727 | CurdOut("Failed to automatically select anime") |
732 | CurdOut("Failed to automatically select anime") |
| 728 | selectedAllanimeAnime, err := DynamicSelect(animeList, false) |
733 | selectedAllanimeAnime, err := DynamicSelect(animeList, false) |
| 729 | |
734 | |
| |
735 | if selectedAllanimeAnime.Key == "-1" { |
| |
736 | ExitCurd(nil) |
| |
737 | } |
| |
738 | |
| 730 | if err != nil { |
739 | if err != nil { |
| 731 | // fmt.Println("No anime available") |
740 | // fmt.Println("No anime available") |
| 732 | ExitCurd(fmt.Errorf("No anime available")) |
741 | ExitCurd(fmt.Errorf("No anime available")) |