Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24 #85

Merged
merged 6 commits into from
Sep 16, 2024
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
52 changes: 47 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,48 @@ jobs:
name: DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
allowUpdates: true
body: ${{ steps.extract-release-notes.outputs.release_notes }}
release-ubuntu-24:
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # https://github.com/marketplace/actions/get-latest-tag
- uses: subosito/flutter-action@v2 # https://github.com/marketplace/actions/flutter-action
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Install dependencies
run: flutter pub get
- name: Install build dependencies
run: sudo apt install -y ninja-build libgtk-3-dev
- run: flutter doctor
- name: Get tag for release
id: currentTag
uses: WyriHaximus/github-action-get-previous-tag@v1 # https://github.com/marketplace/actions/get-latest-tag
- name: Build release linux
run: flutter build linux --release
- name: Copy script files
run: |
cp -R script build/linux/x64/release/bundle/script
- name: Copy ldd files
run: |
ldd build/linux/x64/release/bundle/DeepFaceLabClient
mv build/linux/x64/release/bundle DeepFaceLabClient-linux
bash requirements/linux/import_lib.sh
- name: Zip release linux
run: |
zip -r DeepFaceLabClient-ubuntu-24-${{ steps.currentTag.outputs.tag }}.zip DeepFaceLabClient-linux
- name: Extract release notes # https://github.com/marketplace/actions/extract-release-notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- uses: ncipollo/release-action@v1 # https://github.com/marketplace/actions/create-release
with:
artifacts: DeepFaceLabClient-ubuntu-24-${{ steps.currentTag.outputs.tag }}.zip
tag: ${{ steps.currentTag.outputs.tag }}
name: DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
allowUpdates: true
body: ${{ steps.extract-release-notes.outputs.release_notes }}
release-windows:
runs-on: windows-latest
permissions:
Expand All @@ -110,13 +152,13 @@ jobs:
run: flutter build windows --release
- name: Copy dll files
run: |
copy C:\Windows\System32\msvcp140.dll build\windows\runner\Release
copy C:\Windows\System32\vcruntime140.dll build\windows\runner\Release
copy C:\Windows\System32\vcruntime140_1.dll build\windows\runner\Release
copy C:\Windows\System32\msvcp140.dll build\windows\x64\runner\Release
copy C:\Windows\System32\vcruntime140.dll build\windows\x64\runner\Release
copy C:\Windows\System32\vcruntime140_1.dll build\windows\x64\runner\Release
- name: Copy script files
run: |
mkdir .\build\windows\runner\Release\script\
xcopy .\script\ .\build\windows\runner\Release\script\ /e
mkdir .\build\windows\x64\runner\Release\script\
xcopy .\script\ .\build\windows\x64\runner\Release\script\ /e
- name: Zip release windows
run: |
move build/windows/runner/Release DeepFaceLabClient-windows
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

### Removed

## [0.4.1] - 2023-09-16

### Added

- Add release for ubuntu 24.


## [0.4.0] - 2023-09-16

### Changed
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.3.0
version: 0.4.1

environment:
sdk: '>=2.19.4 <3.0.0'
Expand Down
Loading