8989 name : DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
9090 allowUpdates : true
9191 body : ${{ steps.extract-release-notes.outputs.release_notes }}
92+ release-ubuntu-24 :
93+ runs-on : ubuntu-24.04
94+ permissions :
95+ contents : write
96+ steps :
97+ - uses : actions/checkout@v3
98+ with :
99+ fetch-depth : 0 # https://github.com/marketplace/actions/get-latest-tag
100+ - uses : subosito/flutter-action@v2 # https://github.com/marketplace/actions/flutter-action
101+ with :
102+ channel : ' stable' # or: 'beta', 'dev' or 'master'
103+ - name : Install dependencies
104+ run : flutter pub get
105+ - name : Install build dependencies
106+ run : sudo apt install -y ninja-build libgtk-3-dev
107+ - run : flutter doctor
108+ - name : Get tag for release
109+ id : currentTag
110+ uses : WyriHaximus/github-action-get-previous-tag@v1 # https://github.com/marketplace/actions/get-latest-tag
111+ - name : Build release linux
112+ run : flutter build linux --release
113+ - name : Copy script files
114+ run : |
115+ cp -R script build/linux/x64/release/bundle/script
116+ - name : Copy ldd files
117+ run : |
118+ ldd build/linux/x64/release/bundle/DeepFaceLabClient
119+ mv build/linux/x64/release/bundle DeepFaceLabClient-linux
120+ bash requirements/linux/import_lib.sh
121+ - name : Zip release linux
122+ run : |
123+ zip -r DeepFaceLabClient-ubuntu-24-${{ steps.currentTag.outputs.tag }}.zip DeepFaceLabClient-linux
124+ - name : Extract release notes # https://github.com/marketplace/actions/extract-release-notes
125+ id : extract-release-notes
126+ uses : ffurrer2/extract-release-notes@v1
127+ - uses : ncipollo/release-action@v1 # https://github.com/marketplace/actions/create-release
128+ with :
129+ artifacts : DeepFaceLabClient-ubuntu-24-${{ steps.currentTag.outputs.tag }}.zip
130+ tag : ${{ steps.currentTag.outputs.tag }}
131+ name : DeepFaceLabClient-${{ steps.currentTag.outputs.tag }}
132+ allowUpdates : true
133+ body : ${{ steps.extract-release-notes.outputs.release_notes }}
92134 release-windows :
93135 runs-on : windows-latest
94136 permissions :
@@ -110,13 +152,13 @@ jobs:
110152 run : flutter build windows --release
111153 - name : Copy dll files
112154 run : |
113- copy C:\Windows\System32\msvcp140.dll build\windows\runner\Release
114- copy C:\Windows\System32\vcruntime140.dll build\windows\runner\Release
115- copy C:\Windows\System32\vcruntime140_1.dll build\windows\runner\Release
155+ copy C:\Windows\System32\msvcp140.dll build\windows\x64\ runner\Release
156+ copy C:\Windows\System32\vcruntime140.dll build\windows\x64\ runner\Release
157+ copy C:\Windows\System32\vcruntime140_1.dll build\windows\x64\ runner\Release
116158 - name : Copy script files
117159 run : |
118- mkdir .\build\windows\runner\Release\script\
119- xcopy .\script\ .\build\windows\runner\Release\script\ /e
160+ mkdir .\build\windows\x64\ runner\Release\script\
161+ xcopy .\script\ .\build\windows\x64\ runner\Release\script\ /e
120162 - name : Zip release windows
121163 run : |
122164 move build/windows/runner/Release DeepFaceLabClient-windows
0 commit comments