Compare commits

...

10 Commits

Author SHA1 Message Date
agtuser
76134e2d98 re-init 2024-10-22 10:40:11 +08:00
31651f1890 build git update 2024-10-21 11:32:28 +08:00
961e02ba22 ... 2024-10-19 19:01:39 +08:00
9c4cd399c1 ... 2024-10-19 18:59:53 +08:00
d19976afd5 ... 2024-10-19 18:56:12 +08:00
eee3fd4fc5 ... 2024-10-19 18:22:52 +08:00
27f807dc76 ... 2024-10-19 18:21:04 +08:00
1b77d06c3b ... 2024-10-19 18:12:42 +08:00
6cbb178b50 ... 2024-10-19 18:10:52 +08:00
43abcb5dbb ... 2024-10-19 18:08:35 +08:00
5 changed files with 68 additions and 15 deletions

31
.gitignore vendored Executable file
View File

@@ -0,0 +1,31 @@
# ---> VisualStudioCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
.idea/
# Run temp file and dir
build
release
# Built Visual Studio Code Extensions
*.o
*.o.ES
*.a
*.vsix
*.log
*.log-*
*.bak
*.bak*
*.exe
__debug_bin*.exe
# bin file

View File

@@ -16,32 +16,54 @@ svc_bin=$(svc_root)/bin
web_root=$(build_root)/../web.ems
package_file=$(package_name).tgz
# 获取当前时间
current_date=$(shell date "+%Y-%m-%d %H:%M:%S")
# 文件路径
vfile=$(extra_dir)/emsVersion
# 读取版本信息
# get version from emsVersion
version=$(shell grep "Version:" $(vfile) | awk -F' ' '{print $$2}')
src_log=make_src.log
plat_log=make_plat.log
print-version:
# 输出版本信息和更新后的日期
@echo "Version: $(version)"
@echo "Release Date: $(current_date)"
package:
src_all:
@echo -n "make all src programs ..."
@$(MAKE) -C $(svc_root)/src 1>$(src_log) 2>&1
@echo "refer to log $(src_log)"
plat_all:
@echo -n "make all plat modules ..."
@$(MAKE) -C $(svc_root)/plat 1>$(plat_log) 2>&1
@echo "refer to log $(plat_log)"
src_clean:
$(MAKE) -C $(svc_root)/src src_clean
plat_clean:
$(MAKE) -C $(svc_root)/plat clean
bin: plat_all src_all
clean: plat_clean src_clean
package: bin
@echo "prepare build environment ..."
@rm -rf $(package_path)
@mkdir -p $(package_path)
@echo "cp bin dir to build dir"
@cp -rf $(svc_bin) $(package_path)
@echo "update release date"
@echo "copy bin to build directory ..."
@cp -rf $(svc_bin) $(package_path)
@echo "update release date ..."
@sed -i "s/Release Date:.*/Release Date: $(current_date)/" $(vfile)
@echo "cp extra file to build dir"
@echo "copy extra file to build directory ..."
@cp -rf $(extra_dir)/* $(package_path)
@echo "cp web file to build dir"
@echo "copy web file to build directory ..."
@mkdir -p $(package_path)/web
@cp -rf $(web_root)/* $(package_path)/web
# cd $(build_dir)
@echo "build package $(package_file)"
@echo "build package $(package_file) ..."
@tar cvfz $(build_dir)/$(package_file) -C $(build_dir) $(package_name) >/dev/null
@echo "move $(package_file) to $(release_dir)"
@mv -f $(build_dir)/$(package_file) $(release_dir)
@echo "move $(package_file) to $(release_dir) ..."
@mv -f $(build_dir)/$(package_file) $(release_dir)
@echo "clear temp build directory ..."
@rm -rf $(package_path)

View File

View File

@@ -1,2 +1,2 @@
Version:emsInstall r2409.2
Release Date:2024-09-27 14:15:00
Release Date: 2024-10-19 19:02:15

0
extra/wxc2_emsInstall Normal file → Executable file
View File