-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: update sqlite driver * build: remove docker build sqlite-compatible commands
- Loading branch information
Showing
3 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,14 +85,7 @@ BuildDev() { | |
cat md5.txt | ||
} | ||
|
||
PrepareBuildDocker() { | ||
echo "replace github.com/mattn/go-sqlite3 => github.com/leso-kn/go-sqlite3 v0.0.0-20230710125852-03158dc838ed" >>go.mod | ||
go get gorm.io/driver/[email protected] | ||
go mod download | ||
} | ||
|
||
BuildDocker() { | ||
PrepareBuildDocker | ||
go build -o ./bin/alist -ldflags="$ldflags" -tags=jsoniter . | ||
} | ||
|
||
|
@@ -110,7 +103,7 @@ PrepareBuildDockerMusl() { | |
} | ||
|
||
BuildDockerMultiplatform() { | ||
PrepareBuildDocker | ||
go mod download | ||
|
||
# run PrepareBuildDockerMusl before build | ||
export PATH=$PATH:$PWD/build/musl-libs/bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters