Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed May 15, 2023
1 parent 7307393 commit 9fda156
Show file tree
Hide file tree
Showing 1,465 changed files with 744,825 additions and 0 deletions.
34 changes: 34 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env sh

NAME="$(go list -m)"
SRCDIR="./cmd/southpark-de-downloader"
BUILDDIR="build"

[ "$1" = "clean" ] && echo "Cleaning $BUILDDIR" && rm -rf "$BUILDDIR" && exit 0

build() {
# [linux|dragonfly|freebsd|netbsd|openbsd|plan9|solaris|darwin|windows]"
OS="$1"
# [arm|arm64|ppc64|ppc64le|mips64|386|amd64]
ARCH="$2"
# compiler executable, for example cc or x86_64-w64-mingw32-cc
CC="$3"

echo "Building for $OS on $ARCH using $CC"

[ "$OS" = "windows" ] && EXT=".exe"

mkdir -p "$BUILDDIR"

env GOOS="$OS" GOARCH="$ARCH" CC="$CC" CGO_ENABLED=1 go build -ldflags "-s -w" -o "$BUILDDIR/$NAME-$OS-$ARCH$EXT" "$SRCDIR"
}

#build linux 386 cc &
build linux amd64 cc &
#build linux arm cc &
#build linux arm64 cc &
#build darwin amd64 &
#build windows 386 winegcc &
build windows amd64 x86_64-w64-mingw32-cc &

wait
5 changes: 5 additions & 0 deletions cmd/southpark-downloader-ui/FyneApp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Details]
Icon = "Icon.png"
Name = "Southpark Downloader"
ID = "org.nobrain.southparkdownloaderui"
Build = 96
Binary file added cmd/southpark-downloader-ui/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9fda156

Please sign in to comment.