Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions bin/build
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/bash


go get
go get .

rm -rf dist
mkdir -p dist

cd ./dist

go build -o go-cron ../go-cron.go

tar -cf go-cron.tar.gz go-cron
#x86
env GOOS=linux GOARCH=amd64 go build -o dist/go-cron go-cron.go
tar -cf dist/go-cron.x86_64.tar.gz -C dist go-cron
mv dist/go-cron dist/go-cron.x86_64
# arm
env GOOS=linux GOARCH=arm64 go build -o dist/go-cron go-cron.go
tar -cf dist/go-cron.aarch64.tar.gz -C dist go-cron
mv dist/go-cron dist/go-cron.aarch64
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module wikiteq/go-cron

go 1.22.2

require github.com/robfig/cron v1.2.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/robfig/cron v1.2.0 h1:ZjScXvvxeQ63Dbyxy76Fj3AT3Ut0aKsyd2/tl3DTMuQ=
github.com/robfig/cron v1.2.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k=