-
Notifications
You must be signed in to change notification settings - Fork 547
/
codemagic.yaml
41 lines (41 loc) · 1.31 KB
/
codemagic.yaml
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
workflows:
default-workflow:
name: Default Workflow
instance_type: linux
max_build_duration: 120
environment:
flutter: 3.19.6
xcode: latest
cocoapods: default
vars:
SNAPCRAFT_BUILD_ENVIRONMENT: host
groups:
- snapcraft_credentials
cache:
cache_paths: []
triggering:
branch_patterns:
- pattern: master
include: true
source: true
scripts:
- |
flutter doctor
cp $FCI_BUILD_DIR/android/app/build.gradle.prod $FCI_BUILD_DIR/android/app/build.gradle
cp $FCI_BUILD_DIR/lib/.env.dart.example $FCI_BUILD_DIR/lib/.env.dart
echo "const FLUTTER_VERSION = const <String, String>" > $FCI_BUILD_DIR/lib/flutter_version.dart
flutter --version --machine >> $FCI_BUILD_DIR/lib/flutter_version.dart
echo ";" >> $FCI_BUILD_DIR/lib/flutter_version.dart
- cd . && flutter packages pub get
- flutter config --enable-linux-desktop
- sudo snap refresh snapcraft --channel=7.x/stable
- snapcraft whoami
- snapcraft snap --output invoiceninja.snap
- snapcraft upload invoiceninja.snap --release stable
artifacts:
- build/linux/release/bundle/**
- flutter_drive.log
publishing:
email:
recipients: