mirror of
https://gitea.com/gitea/theme.git
synced 2026-02-03 03:23:17 +08:00
make release creates a .tar.gz directly
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
/dist/
|
||||
/master.tar.gz
|
||||
/node_modules/
|
||||
/static/styles/
|
||||
|
||||
23
Makefile
23
Makefile
@@ -1,12 +1,11 @@
|
||||
STYLES := static/styles
|
||||
DIST := dist
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(STYLES) $(DIST)
|
||||
rm -rf $(STYLES) master.tar.gz
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
@@ -19,13 +18,13 @@ build:
|
||||
|
||||
.PHONY: release
|
||||
release:
|
||||
mkdir -p dist/
|
||||
cp -r archetypes/ dist/
|
||||
cp -r i18n/ dist/
|
||||
cp -r layouts/ dist/
|
||||
cp -r static/ dist/
|
||||
cp -r DCO dist/
|
||||
cp -r LICENSE dist/
|
||||
cp -r MAINTAINERS dist/
|
||||
cp -r README.md dist/
|
||||
cp -r theme.toml dist/
|
||||
tar -cvzf master.tar.gz \
|
||||
archetypes/ \
|
||||
i18n/ \
|
||||
layouts/ \
|
||||
static/ \
|
||||
DCO \
|
||||
LICENSE \
|
||||
MAINTAINERS \
|
||||
README.md \
|
||||
theme.toml
|
||||
|
||||
Reference in New Issue
Block a user