-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.36 KB
/
exe.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
name: Build and package for windows
on:
push:
branches: [ "newui" ]
pull_request:
branches: [ "newui" ]
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install dependencies
uses: msys2/setup-msys2@v2
with:
install: >-
git
p7zip
mingw-w64-x86_64-libsodium
mingw-w64-x86_64-libluv
mingw-w64-x86_64-sqlite3
update: true
- uses: actions/checkout@v3
- name: Create App bundle
run: |
wget https://github.com/love2d/love/releases/download/11.4/love-11.4-win64.zip
7z x love-11.4-win64.zip
mv love-11.4-win64 oh3
mkdir oh3/lib
cp /mingw64/bin/libsqlite3-0.dll oh3/lib/libsqlite3.dll
cp /mingw64/bin/libluv.dll oh3/lib/luv.dll
cp /mingw64/bin/libwinpthread-1.dll oh3
cp /mingw64/bin/libuv-1.dll oh3
cp -r *.lua assets compat extlibs game game_handler server ui input_schemes oh3
cp extra/windows/launch.bat oh3
# create extra folder so the zip contains an oh3 folder instead of directly having all files
mkdir zip_contents
mv oh3 zip_contents
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: oh3
path: zip_contents