mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Provide useful information for contributors (#7994)
* Update parse-changelog.py * Update win-build.bat * Update win-build.bat * Update win-build.bat
This commit is contained in:
parent
ddfb032959
commit
d7bea02361
2 changed files with 11 additions and 3 deletions
|
|
@ -3,8 +3,8 @@ import re
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
import github
|
import github # pip install PyGithub
|
||||||
|
# ensure the milestone is open before run this
|
||||||
docmap = {
|
docmap = {
|
||||||
"Feature": "Feature",
|
"Feature": "Feature",
|
||||||
"Enhancement": "Enhancement",
|
"Enhancement": "Enhancement",
|
||||||
|
|
@ -35,7 +35,7 @@ def generate_msg_from_repo(repo_name, tag_name, lastestRelease):
|
||||||
repo = gh.get_repo(repo_name)
|
repo = gh.get_repo(repo_name)
|
||||||
milestone = find_milestone(repo, tag_name, lastestRelease)
|
milestone = find_milestone(repo, tag_name, lastestRelease)
|
||||||
|
|
||||||
for issue in repo.get_issues(state="closed", milestone=milestone):
|
for issue in repo.get_issues(state="closed", milestone=milestone): # type: ignore
|
||||||
# REF https://pygithub.readthedocs.io/en/latest/github_objects/Issue.html#github.Issue.Issue
|
# REF https://pygithub.readthedocs.io/en/latest/github_objects/Issue.html#github.Issue.Issue
|
||||||
desc_mapping[get_issue_first_label(issue)].append(
|
desc_mapping[get_issue_first_label(issue)].append(
|
||||||
{"title": issue.title, "url": issue.html_url}
|
{"title": issue.title, "url": issue.html_url}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
@echo off
|
||||||
|
echo 'use ".\scripts\win-build.bat" instead of "win-build.bat"'
|
||||||
|
|
||||||
echo 'Building UI'
|
echo 'Building UI'
|
||||||
cd app
|
cd app
|
||||||
call pnpm install
|
call pnpm install
|
||||||
|
|
@ -9,16 +12,19 @@ del /S /Q /F app\build 1>nul
|
||||||
del /S /Q /F app\kernel 1>nul
|
del /S /Q /F app\kernel 1>nul
|
||||||
|
|
||||||
echo 'Building Kernel'
|
echo 'Building Kernel'
|
||||||
|
@REM the C compiler "gcc" is necessary https://sourceforge.net/projects/mingw-w64/files/mingw-w64/
|
||||||
go version
|
go version
|
||||||
set GO111MODULE=on
|
set GO111MODULE=on
|
||||||
set GOPROXY=https://goproxy.io
|
set GOPROXY=https://goproxy.io
|
||||||
set CGO_ENABLED=1
|
set CGO_ENABLED=1
|
||||||
|
|
||||||
cd kernel
|
cd kernel
|
||||||
|
@REM you can use `go generate` instead (nead add something in main.go)
|
||||||
goversioninfo -platform-specific=true -icon=resource/icon.ico -manifest=resource/goversioninfo.exe.manifest
|
goversioninfo -platform-specific=true -icon=resource/icon.ico -manifest=resource/goversioninfo.exe.manifest
|
||||||
|
|
||||||
set GOOS=windows
|
set GOOS=windows
|
||||||
set GOARCH=amd64
|
set GOARCH=amd64
|
||||||
|
@REM you can use `go mod tidy` to update kernel dependency bofore build
|
||||||
go build --tags fts5 -v -o "../app/kernel/SiYuan-Kernel.exe" -ldflags "-s -w -H=windowsgui" .
|
go build --tags fts5 -v -o "../app/kernel/SiYuan-Kernel.exe" -ldflags "-s -w -H=windowsgui" .
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
@ -30,5 +36,7 @@ call pnpm run dist
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo 'Building Appx'
|
echo 'Building Appx'
|
||||||
|
echo 'Building Appx should be disabled if you do not need it. Not configured correctly will lead to build failures'
|
||||||
cd . > app\build\win-unpacked\resources\ms-store
|
cd . > app\build\win-unpacked\resources\ms-store
|
||||||
electron-windows-store --input-directory app\build\win-unpacked --output-directory app\build\ --package-version 1.0.0.0 --package-name SiYuan --manifest app\appx\AppxManifest.xml --assets app\appx\assets\ --make-pri true
|
electron-windows-store --input-directory app\build\win-unpacked --output-directory app\build\ --package-version 1.0.0.0 --package-name SiYuan --manifest app\appx\AppxManifest.xml --assets app\appx\assets\ --make-pri true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue