Compare commits
2 Commits
1.2.0
...
a7c3b632a5
| Author | SHA1 | Date | |
|---|---|---|---|
| a7c3b632a5 | |||
| d53af6b84f |
28
Makefile
28
Makefile
@@ -1,9 +1,10 @@
|
|||||||
BIN := yoink
|
BIN := yoink
|
||||||
BUILD_DIR := build
|
BUILD_DIR := build
|
||||||
REGISTRY := git.brizzle.dev/bryan/yoink-go
|
REGISTRY := git.brizzle.dev/bryan/yoink-go
|
||||||
VERSION := $(shell git describe --tags --always --dirty)
|
VERSION ?= $(shell git describe --tags --always --dirty)
|
||||||
|
NOTES ?= ""
|
||||||
|
|
||||||
.PHONY: all windows linux darwin clean docker-build docker-push
|
.PHONY: all windows linux darwin clean docker-build docker-push tag gitea-release release
|
||||||
|
|
||||||
all: windows linux darwin
|
all: windows linux darwin
|
||||||
|
|
||||||
@@ -28,5 +29,28 @@ docker-push: docker-build
|
|||||||
podman push $(REGISTRY):$(VERSION)
|
podman push $(REGISTRY):$(VERSION)
|
||||||
podman push $(REGISTRY):latest
|
podman push $(REGISTRY):latest
|
||||||
|
|
||||||
|
tag:
|
||||||
|
@if [ -z "$(VERSION)" ]; then echo "Usage: make tag VERSION=1.2.0"; exit 1; fi
|
||||||
|
git tag $(VERSION)
|
||||||
|
git push origin $(VERSION)
|
||||||
|
|
||||||
|
gitea-release:
|
||||||
|
tea release create \
|
||||||
|
--tag $(VERSION) \
|
||||||
|
--title "$(VERSION)" \
|
||||||
|
--note $(NOTES) \
|
||||||
|
--asset $(BUILD_DIR)/$(BIN)-windows-amd64.exe \
|
||||||
|
--asset $(BUILD_DIR)/$(BIN)-linux-amd64 \
|
||||||
|
--asset $(BUILD_DIR)/$(BIN)-linux-arm64 \
|
||||||
|
--asset $(BUILD_DIR)/$(BIN)-darwin-amd64 \
|
||||||
|
--asset $(BUILD_DIR)/$(BIN)-darwin-arm64
|
||||||
|
|
||||||
|
release:
|
||||||
|
@if [ -z "$(VERSION)" ]; then echo "Usage: make release VERSION=1.3.0 NOTES='...'"; exit 1; fi
|
||||||
|
$(MAKE) tag VERSION=$(VERSION)
|
||||||
|
$(MAKE) clean all
|
||||||
|
$(MAKE) gitea-release VERSION=$(VERSION) NOTES=$(NOTES)
|
||||||
|
$(MAKE) docker-push VERSION=$(VERSION)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIR)
|
rm -rf $(BUILD_DIR)
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ The web UI is then available at `http://localhost:8080`.
|
|||||||
|
|
||||||
#### Packaging local images
|
#### Packaging local images
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
Click the upload icon (↑) in the header to open the packaging panel. Enter a title, then either:
|
Click the upload icon (↑) in the header to open the packaging panel. Enter a title, then either:
|
||||||
|
|
||||||
- **Drag and drop** a folder or image files onto the drop zone
|
- **Drag and drop** a folder or image files onto the drop zone
|
||||||
|
|||||||
BIN
Screenshot_02.png
Normal file
BIN
Screenshot_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 270 KiB |
Reference in New Issue
Block a user