+
Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

chore: updated makefile with tar.gz target #303

Merged
merged 1 commit into from
Oct 25, 2020
Merged
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
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ APPIMAGE_DIR = $(RELEASE_DIR)/AppDir
APPIMAGE_DESKTOP_FILE = $(RESOURCES_DIR)/linux/ajour.desktop
APPIMAGE_LOGO_FILE = $(RESOURCES_DIR)/logo/256x256/ajour.png

TAR_NAME = ajour.tar.gz

DMG_NAME ?=
DMG_DIR = $(RELEASE_DIR)/osx

Expand Down Expand Up @@ -44,6 +46,9 @@ binary: $(TARGET) ## Build release binary with cargo
$(TARGET):
$(ENV) cargo build --release $(FEATURE_FLAG)

tar: $(TARGET) ## Create tar.gz of the binary
cd $(RELEASE_DIR) && tar -czf $(TAR_NAME) $(TARGET)

app: $(APP_NAME) ## Clone Ajour.app template and mount binary
$(APP_NAME): $(TARGET)
@mkdir -p $(APP_BINARY_DIR)
Expand Down Expand Up @@ -74,7 +79,7 @@ $(APPIMAGE_NAME): $(TARGET)
--output appimage
@rm -rf $(APPIMAGE_DIR)

.PHONY: app binary dmg appimage
.PHONY: app binary dmg appimage tar

clean: ## Remove all artifacts
-rm -rf $(APP_DIR)
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载