Skip to content

Commit 92dd5db

Browse files
committed
build: update xpack config
1 parent fd6fa8a commit 92dd5db

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.github/workflows/ccpp.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,14 @@ jobs:
1919
- name: Install packages
2020
run: |
2121
npm install
22-
npm install -g @lcui/cli@beta
23-
- name: Restore xmake packages
24-
uses: actions/cache@v4
25-
with:
26-
path: ~/.xmake/.cache/packages
27-
key: ${{ runner.os }}-xmake-packages
22+
npm install -g @lcui/cli
2823
- name: Build
2924
run: |
3025
xmake config -y
3126
lcui build
3227
- name: Package
33-
run: |
34-
xmake install -o artifact/build
35-
mkdir artifact/package
36-
cp -r dist artifact/package/lcui-quick-start
37-
cp artifact/build/bin/* artifact/package/lcui-quick-start
28+
run: xmake pack
3829
- uses: actions/upload-artifact@master
3930
with:
4031
name: package (${{ runner.os }})
41-
path: artifact/package
42-
- name: Cache xmake packages
43-
uses: actions/cache@v4
44-
with:
45-
path: ~/.xmake/.cache/packages
46-
key: ${{ runner.os }}-xmake-packages
32+
path: build/xpack/*/*

xmake.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ xpack("app")
4949
set_formats("nsis", "zip")
5050
set_basename("lcui-quick-start-v$(version)")
5151
add_installfiles("dist/(**)")
52+
add_targets("app")
53+
set_bindir("./")
54+
set_iconfile("logo.ico")

0 commit comments

Comments
 (0)