Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/create_binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create release binaries for the platforms

on:
push:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v2.3.4
- name: Install Flutter
uses: subosito/flutter-action@v1.5.3
with:
flutter-version: '2.2.2'
- name: Enable desktop support
run: flutter config --enable-windows-desktop
- name: Build Windows app
run: flutter build windows
- name: Copy VC redistributables
run: |
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') .
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') .
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') .
working-directory: ./build/windows/runner/Release
- name: Create artifact
uses: actions/upload-artifact@v2
with:
name: CCExtractor Flutter GUI Windows
path: |
./build/windows/runner/Release/*.exe
./build/windows/runner/Release/*.dll
./build/windows/runner/Release/data

38 changes: 38 additions & 0 deletions .github/workflows/create_release_binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create release binaries for the platforms

on:
release:
types:
- created

jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v2.3.4
- name: Install Flutter
uses: subosito/flutter-action@v1.5.3
with:
flutter-version: '2.2.2'
- name: Enable desktop support
run: flutter config --enable-windows-desktop
- name: Build Windows app
run: flutter build windows
- name: Copy VC redistributables
run: |
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') .
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') .
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') .
working-directory: ./build/windows/runner/Release
- name: Create zip
uses: papeloto/action-zip@v1
with:
files: ./build/windows/runner/Release/
dest: ./Windows.zip
- name: Upload as asset
uses: AButler/upload-release-assets@v2.0
with:
files: './Windows.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}