-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
109 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,7 @@ on: | |
|
||
|
||
jobs: | ||
build-abi: | ||
uses: ./.github/workflows/abi.yml | ||
|
||
build-apk: | ||
needs: build-abi | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -18,25 +14,72 @@ jobs: | |
|
||
- name: Set up Flutter SDK | ||
uses: subosito/[email protected] | ||
|
||
- name: Download rust abi from artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: android-abi | ||
channel: stable | ||
cache: true | ||
|
||
- name: Set up rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Test Abi | ||
- name: Build Prepare | ||
run: | | ||
echo "Testing abi" | ||
ls . | ||
flutter pub get | ||
chmod +x ./rust_builder | ||
# - name: Build APK | ||
- name: Build APK | ||
run: | | ||
flutter build apk | ||
ls -alh ./build/app/outputs/flutter-apk/*.apk | ||
cp -r ./build/app/outputs/flutter-apk /tmp/flutter-apk | ||
# - name: Build Linux | ||
# run: | | ||
# flutter build apk --release | ||
# ls -alh ./build/app/outputs/flutter-apk/*.apk | ||
# cp -r ./build/app/outputs/flutter-apk /tmp/flutter-apk | ||
|
||
# - name: Upload artifact | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: flutter-apk | ||
# path: /tmp/flutter-apk/*.apk | ||
# flutter build linux --release | ||
# ls -alh ./build/linux/x64/release/bundle/* | ||
# cp -r ./build/linux/x64/release/bundle /tmp/linux-bundle | ||
|
||
- name: Upload Android | ||
uses: actions/[email protected] | ||
with: | ||
name: android-release | ||
path: /tmp/flutter-apk/*.apk | ||
|
||
build-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Flutter SDK | ||
uses: subosito/[email protected] | ||
with: | ||
channel: stable | ||
cache: true | ||
|
||
- name: Set up rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Build Prepare | ||
run: | | ||
flutter pub get | ||
flutter config --enable-native-assets | ||
- name: Build Windows | ||
run: | | ||
flutter build windows --release | ||
- name: Build iss script | ||
run: | | ||
dart setup.dart | ||
ls build\windows | ||
- name: Upload Windows | ||
uses: actions/[email protected] | ||
with: | ||
name: windows-release | ||
path: build\windows\localsend_rs-setup.exe |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:innosetup/innosetup.dart'; | ||
import 'package:version/version.dart'; | ||
|
||
void main() { | ||
InnoSetup( | ||
app: InnoSetupApp( | ||
name: 'localsend_rs', | ||
version: Version.parse('0.1.0'), | ||
publisher: 'tomzds9@gihub', | ||
urls: InnoSetupAppUrls( | ||
homeUrl: Uri.parse('https://github.com/tom8zds/localsend_rs'), | ||
), | ||
), | ||
files: InnoSetupFiles( | ||
executable: File('build/windows/x64/runner/Release/localsend_rs.exe'), | ||
location: Directory('build/windows/x64/runner/Release/'), | ||
), | ||
name: const InnoSetupName('localsend_rs-setup'), | ||
location: InnoSetupInstallerDirectory( | ||
Directory('build/windows'), | ||
), | ||
icon: InnoSetupIcon( | ||
File('assets/icon/logo.ico'), | ||
), | ||
).make(); | ||
} |