Skip to content

Commit b62d4e9

Browse files
committed
build: update xpack config
1 parent b316ab3 commit b62d4e9

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/ccpp.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,13 @@ jobs:
2020
run: |
2121
npm install
2222
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
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)