-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jerry
committed
Aug 1, 2024
1 parent
b9a66c1
commit dbe0ea7
Showing
10 changed files
with
86 additions
and
86 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
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ backend/.env | |
backend/public | ||
front-end/.env | ||
.idea | ||
moments.exe | ||
moments.exe | ||
backend/dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
CURRENT_DIR := $(shell pwd) | ||
WORK_DIR_BACKEND := $(CURRENT_DIR)/backend | ||
WORK_DIR_FRONTEND := $(CURRENT_DIR)/front | ||
BINARY_NAME := moments | ||
COMMIT = $(shell git rev-parse --short HEAD) | ||
LINUX_BINARY_NAME = $(BINARY_NAME)-linux-amd64 | ||
MACOS_BINARY_NAME = $(BINARY_NAME)-macos-amd64 | ||
WINDOWS_BINARY_NAME = $(BINARY_NAME)-windows-amd64.exe | ||
|
||
export GO := go | ||
|
||
.PHONY: clean build backend frontend | ||
|
||
|
||
build: clean frontend backend | ||
|
||
clean: | ||
$(GO) clean | ||
rm -rf $(WORK_DIR_BACKEND)/dist | ||
rm -rf $(WORK_DIR_BACKEND)/public | ||
rm -rf $(WORK_DIR_FRONTEND)/.output | ||
rm -rf $(WORK_DIR_FRONTEND)/dist | ||
|
||
frontend: | ||
cd $(WORK_DIR_FRONTEND) && pnpm generate | ||
cp -r $(WORK_DIR_FRONTEND)/.output/public $(WORK_DIR_BACKEND)/ | ||
|
||
backend: | ||
cd $(WORK_DIR_BACKEND) && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(GO) build -tags prod -ldflags="-s -w -X 'main.gitCommitID=$(COMMIT)'" -o $(WORK_DIR_BACKEND)/dist/$(MACOS_BINARY_NAME) | ||
cd $(WORK_DIR_BACKEND) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -tags prod -ldflags="-s -w -X 'main.gitCommitID=$(COMMIT)'" -o $(WORK_DIR_BACKEND)/dist/$(LINUX_BINARY_NAME) | ||
cd $(WORK_DIR_BACKEND) && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 $(GO) build -tags prod -ldflags="-s -w -X 'main.gitCommitID=$(COMMIT)'" -o $(WORK_DIR_BACKEND)/dist/$(WINDOWS_BINARY_NAME) | ||
cd $(WORK_DIR_BACKEND) && upx --best --lzma $(WORK_DIR_BACKEND)/dist/$(WINDOWS_BINARY_NAME) | ||
cd $(WORK_DIR_BACKEND) && upx --best --lzma $(WORK_DIR_BACKEND)/dist/$(LINUX_BINARY_NAME) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Moments 极简朋友圈 | ||
|
||
v0.2.1使用了golang作为服务端重写,目前已经基本实现了0.2.0版本的大部分功能.包体积更小了. | ||
|
||
1. 增加了多用户模式,后台可以自由开启是否运行注册多用户. | ||
2. 支持在Linux/MacOS/Windows平台双击本地启动. | ||
3. 标签的定义,以#号开头,空格/空行结尾的中间的部分会被认为是标签. | ||
4. 完善了tag标签的选择,在memo发言的输入框里点击右键可以选择标签来插入. | ||
5. 支持了完整的markdown,但是目前样式只适配了常用的几个标签,更多的待接下来完善. | ||
6. 默认用户名密码`admin/a123456`,登陆后后台可以修改. | ||
|
||
[0.2.0的README](https://github.com/kingwrcy/moments/blob/master/README.md) |
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
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
Oops, something went wrong.