-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild.bat
More file actions
41 lines (36 loc) · 1.36 KB
/
build.bat
File metadata and controls
41 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
@REM frontend-libのビルド
cd client\typescript
call ncu.CMD -u
call pnpm install --force
call pnpm run build:prod
call pnpm version patch
call pnpm publish --no-git-checks
cd ..\..
@REM frontendのビルド。build:prodのなかでライセンス情報を作っている。
cd client\typescript-demo
call ncu.CMD -u
@REM installだとエラーが出る。operation not permitted, unlink hogehoge.. 意味わからん。
@REM call pnpm install --force
@REM 下の処理がとまるときには手動でnode_packageを削除したのちにpnpm installを実行する。(多分ファイルロック周り???)
call pnpm update
call pnpm run build:prod
cd ..\..
@REM Pythonモジュールのラインセンス情報の生成
poetry run generate_license_file
copy licenses_by_license.json web_front\licenses-py.json
@REM バージョン番号のインクリメントとタグの作成
poetry version patch
poetry run generate_version_file --alpha False
git add pyproject.toml
git add ttsclient\version.txt
git add web_front\
git add *\package.json
git add *\package-lock.json
git add client\typescript-demo\public\assets\gui_settings\version.txt
git add client\typescript-demo\public\licenses-js.json
for /f %%i in ('poetry version -s') do set VERSION=%%i
git commit -m "Release v%VERSION%"
git push
git tag -a v%VERSION% -m "Release v%VERSION%"
git push origin --tags