-
Notifications
You must be signed in to change notification settings - Fork 23
49 lines (39 loc) · 1.35 KB
/
windows_deploy.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
name: デプロイ(windows zip)
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: write
jobs:
build_for_windows:
name: Windows用ビルド
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: Flutter pub get
run: |
git config --system core.longpaths true
flutter pub get
- name: Build for Windows
run: |
flutter build windows --release
- name: Copy DLL
run: |
cp C:\Windows\System32\msvcp140.dll build\windows\x64\runner\Release\
cp C:\Windows\System32\vcruntime140.dll build\windows\x64\runner\Release\
cp C:\Windows\System32\vcruntime140_1.dll build\windows\x64\runner\Release\
- name: Zip files
run: |
ren build\windows\x64\runner\Release Miria
Compress-Archive -Path build\windows\x64\runner\Miria -DestinationPath miria_$(flutter pub run cider version)_windows-x64.zip -Force
- name: Create tag and release note
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload v$(flutter pub run cider version) miria_$(flutter pub run cider version)_windows-x64.zip