Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump ejs from 3.1.9 to 3.1.10 in /packages/WebGAL-electron #250

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
936 commits
Select commit Hold shift + click to select a range
d404c2a
feat: enhance sentence edit UI
MakinoharaShoko Dec 17, 2023
f130758
update sponsor
MakinoharaShoko Dec 17, 2023
c1fb9dd
Update ChangeFigure.tsx
MakinoharaShoko Dec 18, 2023
60a1106
feat: enhance sentence add
MakinoharaShoko Dec 18, 2023
37c97bb
feat: enhance topbar style
MakinoharaShoko Dec 18, 2023
c36ed14
feat: add sentence toolbar
MakinoharaShoko Dec 19, 2023
927e424
fix: add sentence tab show judgement
MakinoharaShoko Dec 19, 2023
6f61600
fix: useSelector hook problem
MakinoharaShoko Dec 19, 2023
eef1117
fix: add sentence from top bar event listener
MakinoharaShoko Dec 19, 2023
ce4159a
feat: enhance create scene button
MakinoharaShoko Dec 21, 2023
59b9b1f
feat: enhance top bar config edit tab
MakinoharaShoko Dec 21, 2023
5cecbf3
feat: enhance sentence option button style
MakinoharaShoko Dec 21, 2023
424e444
feat: memorize asset directory, enhance UI.
MakinoharaShoko Dec 22, 2023
b9a99cb
feat: l2d v3 model support
MakinoharaShoko Dec 23, 2023
0c16ef8
update sponsors
MakinoharaShoko Dec 23, 2023
b163568
feat: reduce the height of some components. ChooseFile component add …
nini22P Dec 24, 2023
af0a039
Merge pull request #202 from nini22P/dev
MakinoharaShoko Dec 24, 2023
02bd7be
update engine
MakinoharaShoko Dec 25, 2023
b5844b6
Merge branch 'dev' of https://github.com/OpenWebGAL/WebGAL_Terre into…
MakinoharaShoko Dec 25, 2023
e1d9b91
feat: move addForward to top
nini22P Dec 26, 2023
f1b016d
Merge pull request #204 from nini22P/dev
MakinoharaShoko Dec 26, 2023
8bf2cd8
feat: update tab style
MakinoharaShoko Dec 26, 2023
f1f7438
feat: script editor word warp option
MakinoharaShoko Dec 26, 2023
aa6339e
feat: play to sentence, ui enhancement
MakinoharaShoko Dec 26, 2023
cb5010f
feat: hide some options to sidebar
MakinoharaShoko Dec 26, 2023
a8865dc
Improved UI
nini22P Dec 26, 2023
373e957
update scrollbar-track
nini22P Dec 26, 2023
b422aff
Merge pull request #205 from nini22P/dev
nini22P Dec 26, 2023
05dedb9
update parser
MakinoharaShoko Dec 27, 2023
c629ab6
update engine
MakinoharaShoko Dec 27, 2023
08dc49d
update engine to enhance live preview
MakinoharaShoko Dec 27, 2023
ab6ce9c
feat: i18n
MakinoharaShoko Dec 28, 2023
ec2525c
fix: game name not displayed correctly after refreshing
nini22P Dec 29, 2023
6935aa9
update engine and update version number
MakinoharaShoko Dec 29, 2023
7c3de31
Merge pull request #206 from nini22P/dev
MakinoharaShoko Dec 29, 2023
2df77ed
update version number
MakinoharaShoko Dec 29, 2023
43265c2
Update graphicalEditor.module.scss
MakinoharaShoko Dec 29, 2023
df38ee1
fix: vite script
MakinoharaShoko Dec 29, 2023
6a1162a
Merge pull request #208 from OpenWebGAL/update-vite-deps
MakinoharaShoko Dec 29, 2023
057c306
Update editorSidebar.module.scss
nini22P Dec 30, 2023
107387b
Merge pull request #209 from nini22P/dev
nini22P Dec 30, 2023
2beae51
fix: effect editor default value display
MakinoharaShoko Dec 30, 2023
61c5ef4
update engine
MakinoharaShoko Dec 30, 2023
8068d09
update engine
MakinoharaShoko Dec 30, 2023
0d5575a
update engine
MakinoharaShoko Dec 30, 2023
b7c63ea
update engine
MakinoharaShoko Dec 30, 2023
d55f753
update engine
MakinoharaShoko Dec 30, 2023
002d760
Update SetTransform.tsx
MakinoharaShoko Dec 30, 2023
9e3b13a
Update GraphicalEditor.tsx
MakinoharaShoko Dec 30, 2023
cdd5a2f
Merge pull request #207 from OpenWebGAL/dev
MakinoharaShoko Dec 31, 2023
8f18fb6
build(deps): bump axios from 0.27.2 to 1.6.0
dependabot[bot] Dec 31, 2023
7369a22
Update package.json
MakinoharaShoko Dec 31, 2023
c444dc5
Update ChangeFigure.tsx
MakinoharaShoko Jan 4, 2024
85412cb
feat: listening port at env var WEBGAL_PORT
tinyAdapter Jan 5, 2024
50bb345
Merge pull request #213 from tinyAdapter/dev
MakinoharaShoko Jan 5, 2024
ebc429a
fix: live2d figure motion and expression get
MakinoharaShoko Jan 5, 2024
983d734
update sponsors
MakinoharaShoko Jan 6, 2024
016f5ae
Merge pull request #210 from OpenWebGAL/dependabot/npm_and_yarn/axios…
MakinoharaShoko Jan 7, 2024
8d7d545
Merge branch 'main' into dev
MakinoharaShoko Jan 7, 2024
4eb8ece
fix: Say editor and panel expand
MakinoharaShoko Jan 9, 2024
0369ee0
feat: dashBoard migrating to fluent ui v9
nini22P Jan 9, 2024
212be91
Merge pull request #217 from nini22P/dev
nini22P Jan 9, 2024
96de750
feat: use common css variables
nini22P Jan 10, 2024
8c51c97
update version
MakinoharaShoko Jan 10, 2024
714aa24
Merge pull request #219 from OpenWebGAL/dev
MakinoharaShoko Jan 10, 2024
6a10cfd
build(deps): bump follow-redirects from 1.15.2 to 1.15.4
dependabot[bot] Jan 10, 2024
1ac8663
Update styles
nini22P Jan 11, 2024
9c68acc
fix: topbar btn css
nini22P Jan 11, 2024
6e3b283
Merge pull request #218 from nini22P/dev
nini22P Jan 11, 2024
c5b3e07
update engine
MakinoharaShoko Jan 16, 2024
dd5f871
fix: engine
MakinoharaShoko Jan 16, 2024
adb69b1
update assets
MakinoharaShoko Jan 19, 2024
d9ba68f
update engine
MakinoharaShoko Jan 20, 2024
a55644d
feat: add parser deps
MakinoharaShoko Jan 20, 2024
5860ad2
add script parse
MakinoharaShoko Jan 20, 2024
6993977
update engine
MakinoharaShoko Jan 21, 2024
d2b225b
feat: add intro hold option
MakinoharaShoko Jan 21, 2024
2444bd9
update version
MakinoharaShoko Jan 21, 2024
be9c270
Merge pull request #223 from OpenWebGAL/dev
MakinoharaShoko Jan 21, 2024
932d884
add debugger
MakinoharaShoko Jan 21, 2024
34c49e8
feat: migrating to fluent ui v9
nini22P Jan 24, 2024
3ae1564
Merge pull request #224 from nini22P/dev
nini22P Jan 24, 2024
8f4031d
feat: enhance style of debugger
MakinoharaShoko Jan 24, 2024
72711cd
update enging
MakinoharaShoko Jan 27, 2024
d64a40e
update version number
MakinoharaShoko Jan 27, 2024
87f5d63
Merge pull request #225 from OpenWebGAL/dev
MakinoharaShoko Jan 27, 2024
ecc306a
update debug protocol
MakinoharaShoko Feb 14, 2024
883de9e
Merge pull request #220 from OpenWebGAL/dependabot/npm_and_yarn/follo…
MakinoharaShoko Feb 15, 2024
10aa312
add template dirname
Feb 18, 2024
555409d
add template extname
loliko114514 Feb 18, 2024
e7bdc05
feat: preview template api
MakinoharaShoko Feb 18, 2024
9b4e45b
refactor: use StreamableFile instead of res.pipe.
MakinoharaShoko Feb 18, 2024
e6a6d5a
Revert "add template dirname"
loliko114514 Feb 19, 2024
491954b
Revert "add template extname"
loliko114514 Feb 19, 2024
ece14ca
Merge branch 'OpenWebGAL:dev' into dev
loliko114514 Feb 19, 2024
a4d94e8
Update electron version
nini22P Feb 21, 2024
489a050
Update workflow node version
nini22P Feb 21, 2024
e0ddf03
update engine
MakinoharaShoko Feb 21, 2024
448f545
Update title.scss
MakinoharaShoko Feb 21, 2024
6610bf4
Build macOS workflow use macos-14
nini22P Feb 21, 2024
37f9d34
Merge pull request #227 from nini22P/dev
MakinoharaShoko Feb 21, 2024
b8bb23b
Update release-mac.sh
MakinoharaShoko Feb 21, 2024
f3c03f4
Update release-mac.sh
MakinoharaShoko Feb 21, 2024
ce8cc08
Merge branch 'dev' of https://github.com/loliko114514/WebGAL_Terre in…
loliko114514 Feb 23, 2024
3235ae0
add template entry
loliko114514 Feb 25, 2024
83ed715
delete useless files
MakinoharaShoko Feb 25, 2024
7c8c0c2
delete template api
loliko114514 Feb 25, 2024
ce1b974
Merge branch 'dev' of https://github.com/loliko114514/WebGAL_Terre in…
loliko114514 Feb 25, 2024
f15db22
feat: enhance dashboard Tablist style
MakinoharaShoko Feb 25, 2024
65e7fab
Merge branch 'dev' of https://github.com/loliko114514/WebGAL_Terre in…
MakinoharaShoko Feb 25, 2024
ddb8cdc
Update DashBoard.tsx
MakinoharaShoko Feb 25, 2024
f6cc957
add manage-template module
loliko114514 Feb 25, 2024
94aa544
Merge branch 'dev' of https://github.com/loliko114514/WebGAL_Terre in…
loliko114514 Feb 26, 2024
6ff4707
delete template showMessage
loliko114514 Feb 26, 2024
37467e4
feat: init dashboard UI
MakinoharaShoko Feb 26, 2024
f9b0401
Merge pull request #228 from loliko114514/dev
MakinoharaShoko Feb 26, 2024
2043ef0
update engine to fix bugs
MakinoharaShoko Mar 2, 2024
e601f24
update engine and version
MakinoharaShoko Mar 2, 2024
736a700
Merge branch 'engine-fix-4.4.12' into dev
MakinoharaShoko Mar 2, 2024
797c01f
Merge pull request #230 from OpenWebGAL/engine-fix-4.4.12
MakinoharaShoko Mar 2, 2024
385b225
feat: add assets api
nini22P Mar 4, 2024
52b1ded
add product hunt link
MakinoharaShoko Mar 7, 2024
d0f05c1
add product hunt link
MakinoharaShoko Mar 7, 2024
138f2f4
feat: new Assets component
nini22P Mar 10, 2024
882d76d
feat: add assets protect check
nini22P Mar 10, 2024
f22edf8
feat: assets add format support and file description
nini22P Mar 11, 2024
7f66f3a
style: update file style
nini22P Mar 11, 2024
177359c
style: update popover style
nini22P Mar 11, 2024
7421b14
Remove old assets component
nini22P Mar 11, 2024
9b0b6a6
Merge pull request #232 from nini22P/new-assets-component
nini22P Mar 11, 2024
6f32b39
feat: route improvements, state repository migration to zustand
nini22P Mar 17, 2024
e3547dc
fix: type naming
nini22P Mar 17, 2024
51a2743
fix: case bug
nini22P Mar 17, 2024
5fb4a9f
Dashboard improvements
nini22P Mar 17, 2024
1953bad
Merge branch 'dev' of https://github.com/nini22P/WebGAL_Terre into dev
nini22P Mar 17, 2024
3f0d51b
fix: refresh dashboard when changing tab
MakinoharaShoko Mar 17, 2024
155d303
Merge branch 'dev' into dev
nini22P Mar 17, 2024
8646bd8
Routing Improvement
nini22P Mar 18, 2024
ae7c630
Merge branch 'dev' of https://github.com/nini22P/WebGAL_Terre into dev
nini22P Mar 18, 2024
529daf6
Merge pull request #234 from nini22P/dev
nini22P Mar 18, 2024
f1b00e4
update engine
MakinoharaShoko Mar 18, 2024
cd52466
Use SWR fetch assets, split file function
nini22P Mar 18, 2024
f7e1cf4
Merge pull request #235 from nini22P/dev
nini22P Mar 18, 2024
aa92500
add standalone script
MakinoharaShoko Mar 20, 2024
e71887c
add terre electron
MakinoharaShoko Mar 20, 2024
86815d4
Merge pull request #236 from OpenWebGAL/terre-with-electron
MakinoharaShoko Mar 20, 2024
4e016ce
fix: live preview
MakinoharaShoko Mar 20, 2024
5c9b4d0
template editor base layout
nini22P Mar 20, 2024
8791150
Resizing support
nini22P Mar 21, 2024
240cbe4
Add template component tree
nini22P Mar 21, 2024
f1fadef
Merge pull request #237 from nini22P/dev
nini22P Mar 21, 2024
240c701
Update template editor style
nini22P Mar 22, 2024
c6ade50
fix: template api
MakinoharaShoko Mar 23, 2024
6313147
Merge branch 'dev' of https://github.com/OpenWebGAL/WebGAL_Terre into…
MakinoharaShoko Mar 23, 2024
6935c35
Delete packages/terre2/assets/editing-template directory
MakinoharaShoko Mar 23, 2024
eccf62c
fix: template assets directory
MakinoharaShoko Mar 23, 2024
57e1372
Add template editor tabs and toolbar
nini22P Mar 23, 2024
ae214ef
Merge branch 'dev' into dev
nini22P Mar 23, 2024
722c715
Merge pull request #238 from nini22P/dev
nini22P Mar 23, 2024
424e16b
fix: template assets directory
MakinoharaShoko Mar 24, 2024
20e8bb0
feat: manage template api, edit assets text file api
MakinoharaShoko Mar 24, 2024
6178500
add test http of apply template to game
MakinoharaShoko Mar 24, 2024
db25674
update engine
MakinoharaShoko Mar 24, 2024
a9be838
update engine
MakinoharaShoko Mar 24, 2024
773979f
Update release-mac.sh
MakinoharaShoko Mar 24, 2024
42e08ef
fix: proxy server handle templates error
MakinoharaShoko Mar 24, 2024
72e36aa
Update vite.config.ts
MakinoharaShoko Mar 24, 2024
9805076
Component Tree Expanded State Persistence, update assets api and mana…
nini22P Mar 25, 2024
5270381
feat: get style by class api
MakinoharaShoko Mar 26, 2024
5c57449
feat: adjust websocket route
MakinoharaShoko Mar 27, 2024
afa7fce
fix: ws port
MakinoharaShoko Mar 27, 2024
0bbb3be
fix: add deps to pack
MakinoharaShoko Mar 27, 2024
0d8d795
fix: font problem
MakinoharaShoko Mar 27, 2024
cd96867
feat: update engine, init template graphic editor.
MakinoharaShoko Mar 30, 2024
3dcadec
feat: text editor send update to engine, enhance property editor style.
MakinoharaShoko Mar 30, 2024
fc46150
update engine with landing page updated.
MakinoharaShoko Mar 30, 2024
7c14844
init lingui
MakinoharaShoko Apr 3, 2024
43c6dc0
feat: migrate to lingui
MakinoharaShoko Apr 4, 2024
adf25ff
feat: English translation migration
MakinoharaShoko Apr 4, 2024
380ab9b
feat: Japanese translation migration
MakinoharaShoko Apr 4, 2024
70ee3bf
Merge pull request #243 from OpenWebGAL/lingui
MakinoharaShoko Apr 4, 2024
1bf6407
fix: i18n import
MakinoharaShoko Apr 4, 2024
c973537
fix: fallback locales
MakinoharaShoko Apr 6, 2024
3039b44
feat: with state props editor.
MakinoharaShoko Apr 13, 2024
cdd3dc2
feat: use table to show property editor
MakinoharaShoko Apr 14, 2024
5e4ede0
fix: i18n problem
MakinoharaShoko Apr 14, 2024
2903ec8
feat: add property and state button
MakinoharaShoko Apr 14, 2024
254b0d6
feat: add state property group, fix: update parser to solve scss pars…
MakinoharaShoko Apr 14, 2024
d0096fc
Update templateGraphicalEditor.module.scss
MakinoharaShoko Apr 14, 2024
c3de930
feat: create game from template or derivative engine
MakinoharaShoko Apr 18, 2024
eb4d23e
refactor: property editor structure
MakinoharaShoko Apr 20, 2024
3559015
feat: add delete property button
MakinoharaShoko Apr 20, 2024
4493ded
feat: language server protocol + vscode-api
tinyAdapter Apr 20, 2024
9897acf
feat: add potion and custom property edit comp.
MakinoharaShoko Apr 20, 2024
9c6eb20
fix: exact CSS, feat: width property edit comp.
MakinoharaShoko Apr 20, 2024
4757b23
feat: height and color editor
MakinoharaShoko Apr 20, 2024
2b64400
refactor: color picker for common useages.
MakinoharaShoko Apr 20, 2024
5816428
feat: add position offset editor, refactor: length editor
MakinoharaShoko Apr 20, 2024
6352c92
feat: add font-size, letter-spacing, min-width, max-width, min-height…
nini22P Apr 21, 2024
99f0321
feat: rename and remove template editor storage
nini22P Apr 21, 2024
a03f54d
feat: auto hide template editor toolbar
nini22P Apr 21, 2024
d171ace
Merge pull request #245 from nini22P/dev
nini22P Apr 21, 2024
f6b5d96
Merge pull request #246 from tinyAdapter/dev-lsp
MakinoharaShoko Apr 21, 2024
503618a
fix: pkg problem of webgal terre
MakinoharaShoko Apr 21, 2024
404e0d0
Update tsconfig.json
MakinoharaShoko Apr 21, 2024
98405a1
feat: use monokai-light theme
MakinoharaShoko Apr 21, 2024
eeb1466
fix: i18n compile
MakinoharaShoko Apr 21, 2024
62b7c9b
feat: command args autocomplete
tinyAdapter Apr 24, 2024
3e8a7fd
feat: file suggestions & chore: clean code
tinyAdapter Apr 26, 2024
aef8275
feat: more file suggestions
tinyAdapter Apr 26, 2024
11dc9f1
feat: LSP: semantic tokens (variables in say)
tinyAdapter Apr 26, 2024
ea83d9e
feat: LSP: variable suggestion
tinyAdapter Apr 26, 2024
b320722
feat: LSP: key-value pair & intro
tinyAdapter Apr 26, 2024
81c7d3e
chore: LSP: clean code & fix: game name lookup
tinyAdapter Apr 27, 2024
9ed8883
Merge pull request #247 from tinyAdapter/dev-lsp
MakinoharaShoko Apr 27, 2024
054678c
lint
MakinoharaShoko Apr 27, 2024
af2ce93
rename auto selection
hshqwq May 1, 2024
79a2e63
optimize auto selection
hshqwq May 1, 2024
ebbf312
auto selection by first dot
nini22P May 2, 2024
30a5eaf
Merge pull request #248 from hshqwq/dev
nini22P May 2, 2024
14d19e3
Merge pull request #249 from OpenWebGAL/dev-lsp
MakinoharaShoko May 3, 2024
39e89de
feat: add textbox component tree, update properties editor.
MakinoharaShoko May 3, 2024
4092adf
add template folder info on assets
nini22P May 3, 2024
75fd00f
feat: update engine to separate textbox bg and text.
MakinoharaShoko May 3, 2024
9a52611
Merge pull request #251 from nini22P/dev
nini22P May 3, 2024
6bafc2d
feat: add textbox bg to component tree
MakinoharaShoko May 3, 2024
f62980f
feat: add boarder radius editor
MakinoharaShoko May 3, 2024
913445b
improve display of the delete dialog
nini22P May 3, 2024
0b85cf8
Create .gitkeep
MakinoharaShoko May 3, 2024
c2ad5bb
feat: add mdn docs link to every property
MakinoharaShoko May 3, 2024
01d74ae
fix: nested folder scene file editing
nini22P May 3, 2024
ef9d700
Merge pull request #252 from nini22P/dev
nini22P May 3, 2024
24fbf22
fix: help link style, template assets manager
MakinoharaShoko May 3, 2024
8d92be7
Add back WebGAL Back Template.
MakinoharaShoko May 3, 2024
d3bf514
revert dev-lsp
MakinoharaShoko May 3, 2024
b7d7c5b
Update textbox.scss
MakinoharaShoko May 3, 2024
c49e5aa
feat: add live preview button on game preview
nini22P May 3, 2024
3fb41d4
Merge pull request #253 from nini22P/dev
nini22P May 3, 2024
6661351
update translations
MakinoharaShoko May 3, 2024
09b4d92
Merge branch 'dev' of https://github.com/OpenWebGAL/WebGAL_Terre into…
MakinoharaShoko May 3, 2024
7f49848
update trans
MakinoharaShoko May 3, 2024
a8721a3
update version number
MakinoharaShoko May 3, 2024
19b9b1e
Merge branch 'main' into dev
MakinoharaShoko May 3, 2024
1860147
update engine
MakinoharaShoko May 3, 2024
2cb6dad
Merge branch 'dev' of https://github.com/OpenWebGAL/WebGAL_Terre into…
MakinoharaShoko May 3, 2024
4ed6619
update engine
MakinoharaShoko May 3, 2024
1a6e5a8
Update package.json
MakinoharaShoko May 3, 2024
0d92957
delete test files
MakinoharaShoko May 3, 2024
d783c5d
Merge pull request #254 from OpenWebGAL/dev
MakinoharaShoko May 3, 2024
cb8d7ee
build(deps-dev): bump ejs in /packages/WebGAL-electron
dependabot[bot] May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
custom: https://docs.openwebgal.com/sponsor/
patreon: WebGAL
179 changes: 179 additions & 0 deletions .github/workflows/build-terre.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
name: Build WebGAL Terre

on:
push:
branches:
- main

jobs:
build-linux:
name: Build Linux Binary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: sh release-linux.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Linux
path: release
build-arm64:
name: Build Linux ARM64 Binary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build Stage 1
run: |
echo "Welcome to build WebGAL Terre, the editor of WebGAL platform."
# 安装依赖
yarn install --frozen-lockfile
# 清理
test -d release && rm -rf release
mkdir release
# 进入 Terre 目录
cd packages/terre2
yarn run build
- name: Build pkg ARM64
uses: pguyot/arm-runner-action@v2
with:
base_image: raspios_lite_arm64:latest
bind_mount_repository: true
commands: |
apt-get update
apt-get install -y curl sudo
# Install Node.js v18.x
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
apt-get install -y nodejs
# Enable yarn
corepack prepare [email protected] --activate
corepack enable yarn
cd packages/terre2
yarn run pkg:linux-arm64
- name: Build Stage 2
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
sudo chmod 777 -R .
cd packages/terre2/dist
cp -r WebGAL_Terre ../../../release
rm WebGAL_Terre
cd ../
mkdir Exported_Games
cp -r public assets Exported_Games ../../release
cd ../../
# 进入 Origine 目录
cd packages/origine2
# 低内存,使用下一行限制内存使用
# export NODE_OPTIONS=--max_old_space_size=512000
yarn run build
cp -rf dist/* ../../release/public/
cd ../../
# 进入 Electron 目录
cd packages/WebGAL-electron
yarn install --frozen-lockfile
yarn run build:arm64
mkdir ../../release/assets/templates/WebGAL_Electron_Template
cp -rf build/linux-arm64-unpacked/* ../../release/assets/templates/WebGAL_Electron_Template/
cd ../../
# 克隆 WebGAL Android 模板
cd release/assets/templates/
git clone https://github.com/nini22P/WebGAL-Android.git
mv WebGAL-Android WebGAL_Android_Template
# MainActivity.kt 移动到主文件夹防止误删
mv WebGAL_Android_Template/app/src/main/java/com/openwebgal/demo/MainActivity.kt WebGAL_Android_Template/app/src/main/java/MainActivity.kt
cd ../../../
cd release
# 删除冗余文件
rm -rf Exported_Games/*
rm -rf public/games/*
rm -rf public/games/.gitkeep
rm -rf assets/templates/WebGAL_Template/game/video/*
rm -rf assets/templates/WebGAL_Template/game/video/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/.github
rm -rf assets/templates/WebGAL_Android_Template/.git
rm -rf assets/templates/WebGAL_Android_Template/.gitattributes
rm -rf assets/templates/WebGAL_Android_Template/app/src/main/assets/webgal/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/app/src/main/java/com
echo "WebGAL Terre is now ready to be deployed."
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Linux_Arm64
path: release
build-mac:
name: Build MacOS Binary
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: sh release-mac.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Mac
path: release
build-windows:
name: Build Windows Binary
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
shell: bash
run: ./release.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Windows
path: release
build-windows-nsis:
name: Build Windows Setup
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
shell: bash
run: ./release.sh
- name: Build Setup
shell: bash
run: mkdir bundle && yarn nsis-bundle
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Windows_Setup
path: bundle/WebGal_Terre_Setup.exe

181 changes: 181 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
name: Build Check

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
build-linux:
name: Build Linux Binary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: sh release-linux.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Linux
path: release
build-arm64:
name: Build Linux ARM64 Binary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build Stage 1
run: |
echo "Welcome to build WebGAL Terre, the editor of WebGAL platform."
# 安装依赖
yarn install --frozen-lockfile
# 清理
test -d release && rm -rf release
mkdir release
# 进入 Terre 目录
cd packages/terre2
yarn run build
- name: Build pkg ARM64
uses: pguyot/arm-runner-action@v2
with:
base_image: raspios_lite_arm64:latest
bind_mount_repository: true
commands: |
apt-get update
apt-get install -y curl sudo
# Install Node.js v18.x
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
apt-get install -y nodejs
# Enable yarn
corepack prepare [email protected] --activate
corepack enable yarn
cd packages/terre2
yarn run pkg:linux-arm64
- name: Build Stage 2
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
sudo chmod 777 -R .
cd packages/terre2/dist
cp -r WebGAL_Terre ../../../release
rm WebGAL_Terre
cd ../
mkdir Exported_Games
cp -r public assets Exported_Games ../../release
cd ../../
# 进入 Origine 目录
cd packages/origine2
# 低内存,使用下一行限制内存使用
# export NODE_OPTIONS=--max_old_space_size=512000
yarn run build
cp -rf dist/* ../../release/public/
cd ../../
# 进入 Electron 目录
cd packages/WebGAL-electron
yarn install --frozen-lockfile
yarn run build:arm64
mkdir ../../release/assets/templates/WebGAL_Electron_Template
cp -rf build/linux-arm64-unpacked/* ../../release/assets/templates/WebGAL_Electron_Template/
cd ../../
# 克隆 WebGAL Android 模板
cd release/assets/templates/
git clone https://github.com/nini22P/WebGAL-Android.git
mv WebGAL-Android WebGAL_Android_Template
# MainActivity.kt 移动到主文件夹防止误删
mv WebGAL_Android_Template/app/src/main/java/com/openwebgal/demo/MainActivity.kt WebGAL_Android_Template/app/src/main/java/MainActivity.kt
cd ../../../
cd release
# 删除冗余文件
rm -rf Exported_Games/*
rm -rf public/games/*
rm -rf public/games/.gitkeep
rm -rf assets/templates/WebGAL_Template/game/video/*
rm -rf assets/templates/WebGAL_Template/game/video/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/.github
rm -rf assets/templates/WebGAL_Android_Template/.git
rm -rf assets/templates/WebGAL_Android_Template/.gitattributes
rm -rf assets/templates/WebGAL_Android_Template/app/src/main/assets/webgal/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/app/src/main/java/com
echo "WebGAL Terre is now ready to be deployed."
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Linux_Arm64
path: release
build-mac:
name: Build MacOS Binary
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: sh release-mac.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Mac
path: release
build-windows:
name: Build Windows Binary
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
shell: bash
run: ./release.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Windows
path: release
build-windows-nsis:
name: Build Windows Setup
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Build
shell: bash
run: ./release.sh
- name: Build Setup
shell: bash
run: mkdir bundle && yarn nsis-bundle
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: WebGAL_Terre_Windows_Setup
path: bundle/WebGal_Terre_Setup.exe

Loading
Loading