2018-05-08 01:48:27 +00:00
|
|
|
aul:
|
2018-03-30 23:34:52 +00:00
|
|
|
@echo "no default"
|
|
|
|
|
|
|
|
run:
|
2018-05-08 01:48:27 +00:00
|
|
|
go run main.go
|
|
|
|
|
2018-04-21 02:55:05 +00:00
|
|
|
debug:
|
|
|
|
DEBUG=1 go run main.go
|
|
|
|
|
2018-03-31 08:42:25 +00:00
|
|
|
# http://macappstore.org/upx
|
2018-05-11 08:44:32 +00:00
|
|
|
build/mac: clean/mac
|
2018-04-27 18:32:26 +00:00
|
|
|
env GOARCH=amd64 go build -ldflags "-s -w" -o bin/macos/cointop && upx bin/macos/cointop
|
|
|
|
|
2018-05-11 08:44:32 +00:00
|
|
|
build/linux: clean/linux
|
2018-05-11 08:47:05 +00:00
|
|
|
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/linux/cointop && upx bin/linux/cointop
|
2018-05-11 08:20:08 +00:00
|
|
|
|
2018-04-27 18:32:26 +00:00
|
|
|
build/multiple: clean
|
2018-04-01 05:41:03 +00:00
|
|
|
env GOARCH=amd64 go build -ldflags "-s -w" -o bin/cointop64 && upx bin/cointop64 && \
|
|
|
|
env GOARCH=386 go build -ldflags "-s -w" -o bin/cointop32 && upx bin/cointop32
|
2018-03-31 08:18:53 +00:00
|
|
|
|
2018-05-11 08:44:32 +00:00
|
|
|
clean/mac:
|
|
|
|
go clean && \
|
|
|
|
rm -rf bin/mac
|
|
|
|
|
|
|
|
clean/linux:
|
|
|
|
go clean && \
|
|
|
|
rm -rf bin/linux
|
|
|
|
|
2018-03-31 08:18:53 +00:00
|
|
|
clean:
|
2018-04-01 05:25:51 +00:00
|
|
|
go clean && \
|
2018-04-27 18:32:26 +00:00
|
|
|
rm -rf bin/
|
2018-04-03 07:20:30 +00:00
|
|
|
|
|
|
|
test:
|
2018-04-03 08:30:15 +00:00
|
|
|
go test ./...
|
2018-04-20 09:12:50 +00:00
|
|
|
|
2018-04-28 00:07:13 +00:00
|
|
|
cointop/test:
|
|
|
|
go run main.go -test
|
|
|
|
|
2018-04-20 09:39:45 +00:00
|
|
|
snap/clean:
|
|
|
|
snapcraft clean
|
2018-05-08 08:00:17 +00:00
|
|
|
rm -f cointop_*.snap
|
2018-04-20 09:39:45 +00:00
|
|
|
|
|
|
|
snap/stage:
|
|
|
|
snapcraft stage
|
|
|
|
|
2018-04-21 02:55:05 +00:00
|
|
|
snap/build: snap/clean snap/stage
|
2018-04-20 09:39:45 +00:00
|
|
|
snapcraft snap
|
2018-04-20 09:12:50 +00:00
|
|
|
|
|
|
|
snap/deploy:
|
2018-04-20 09:39:45 +00:00
|
|
|
snapcraft push cointop_*.snap --release stable
|
|
|
|
|
|
|
|
snap/remove:
|
|
|
|
snap remove cointop
|
2018-04-26 23:19:19 +00:00
|
|
|
|
2018-06-23 09:12:22 +00:00
|
|
|
snap/build-and-deploy: snap/build snap/deploy snap/remove
|
|
|
|
@echo "done"
|
|
|
|
|
2018-05-11 09:04:08 +00:00
|
|
|
flatpak/build:
|
|
|
|
flatpak-builder --force-clean build-dir com.github.miguelmota.Cointop.json
|
|
|
|
|
2018-05-11 09:55:01 +00:00
|
|
|
flatpak/run/test:
|
2018-05-11 09:04:08 +00:00
|
|
|
flatpak-builder --run build-dir com.github.miguelmota.Cointop.json cointop
|
|
|
|
|
|
|
|
flatpak/repo:
|
|
|
|
flatpak-builder --repo=repo --force-clean build-dir com.github.miguelmota.Cointop.json
|
|
|
|
|
2018-05-11 09:55:01 +00:00
|
|
|
flatpak/add:
|
|
|
|
flatpak --user remote-add --no-gpg-verify cointop-repo repo
|
|
|
|
|
2018-05-11 10:12:30 +00:00
|
|
|
flatpak/remove:
|
|
|
|
flatpak --user remote-delete cointop-repo
|
|
|
|
|
2018-05-11 09:55:01 +00:00
|
|
|
flatpak/install:
|
|
|
|
flatpak --user install cointop-repo com.github.miguelmota.Cointop
|
|
|
|
|
|
|
|
flatpak/run:
|
|
|
|
flatpak run com.github.miguelmota.Cointop
|
2018-05-11 09:04:08 +00:00
|
|
|
|
2018-05-21 08:23:39 +00:00
|
|
|
rpm/deps:
|
|
|
|
sudo dnf install rpm-build
|
|
|
|
sudo dnf install dnf-plugins-core
|
|
|
|
|
|
|
|
rpm/build:
|
2018-05-21 17:18:00 +00:00
|
|
|
rpmbuild -ba ~/rpmbuild/SPECS/cointop.spec
|
|
|
|
|
|
|
|
rpm/lint:
|
|
|
|
rpmlint ~/rpmbuild/SPECS/cointop.spec
|
2018-05-21 08:23:39 +00:00
|
|
|
|
2018-05-21 08:45:05 +00:00
|
|
|
copr/install:
|
|
|
|
sudo dnf install copr-cli
|
|
|
|
|
2018-05-21 08:23:39 +00:00
|
|
|
copr/create-project:
|
|
|
|
copr-cli create cointop --chroot fedora-rawhide-x86_64
|
|
|
|
|
|
|
|
copr/build:
|
|
|
|
rm -rf ~/rpmbuild/SRPMS/cointop-*.rpm
|
|
|
|
copr-cli build cointop ~/rpmbuild/SRPMS/cointop-*.rpm
|
|
|
|
|
2018-04-27 18:32:26 +00:00
|
|
|
brew/clean: brew/remove
|
|
|
|
brew cleanup --force cointop
|
|
|
|
brew prune
|
|
|
|
|
2018-04-26 23:19:19 +00:00
|
|
|
brew/remove:
|
2018-04-27 18:32:26 +00:00
|
|
|
brew uninstall --force cointop
|
2018-04-26 23:19:19 +00:00
|
|
|
|
|
|
|
brew/build: brew/remove
|
|
|
|
brew install --build-from-source cointop.rb
|
2018-04-27 18:32:26 +00:00
|
|
|
|
|
|
|
brew/audit:
|
|
|
|
brew audit --strict cointop.rb
|
2018-04-27 19:09:34 +00:00
|
|
|
|
2018-05-16 01:56:26 +00:00
|
|
|
brew/test:
|
|
|
|
brew test cointop.rb
|
|
|
|
|
2018-06-08 00:46:20 +00:00
|
|
|
brew/tap:
|
|
|
|
brew tap cointop/cointop https://github.com/miguelmota/cointop
|
|
|
|
|
|
|
|
brew/untap:
|
|
|
|
brew untap cointop/cointop
|
|
|
|
|
2018-04-27 19:09:34 +00:00
|
|
|
git/rm/large:
|
|
|
|
java -jar bfg.jar --strip-blobs-bigger-than 200K .
|
|
|
|
|
|
|
|
git/repack:
|
|
|
|
git reflog expire --expire=now --all
|
|
|
|
git fsck --full --unreachable
|
|
|
|
git repack -A -d
|
|
|
|
git gc --aggressive --prune=now
|
2018-05-21 07:42:32 +00:00
|
|
|
|
|
|
|
release:
|
|
|
|
rm -rf dist
|
|
|
|
goreleaser
|