File tree Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Original file line number Diff line number Diff line change 16
16
- uses : actions/checkout@v4
17
17
with :
18
18
fetch-depth : 5
19
- - uses : subosito/flutter-action@v2
20
- with :
21
- channel : " stable"
22
- flutter-version : ${{env.FLUTTER_VERSION}}
23
- - run : sudo apt update
24
- - run : sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libsecret-1-dev
25
- - run : flutter pub get
19
+ - run : echo ${{ secrets.API_KEY }} > secrets.txt
26
20
- uses : snapcore/action-build@v1
27
- env :
28
- API_KEY : ${{ secrets.API_KEY }}
29
21
id : build
30
22
- uses : snapcore/action-publish@v1
31
23
if : steps.build.outcome == 'success'
41
33
- uses : actions/checkout@v4
42
34
with :
43
35
fetch-depth : 5
44
- - uses : subosito/flutter-action@v2
45
- with :
46
- channel : " main"
47
- flutter-version : ${{env.FLUTTER_VERSION}}
48
- - run : sudo apt update
49
- - run : sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libsecret-1-dev
50
- - run : flutter pub get
36
+ - run : echo ${{ secrets.API_KEY }} > secrets.txt
51
37
- uses : snapcore/action-build@v1
52
38
id : build
53
- env :
54
- API_KEY : ${{ secrets.API_KEY }}
55
39
- uses : snapcore/action-publish@v1
56
40
if : steps.build.outcome == 'success'
57
41
env :
Original file line number Diff line number Diff line change 1
1
name : pulse
2
2
title : Pulse
3
- base : core22
3
+ base : core24
4
4
version : git
5
5
6
6
summary : Weather app for the Linux Desktop.
@@ -13,9 +13,9 @@ icon: snap/gui/pulse.png
13
13
14
14
grade : stable
15
15
confinement : strict
16
- architectures :
17
- - build-on : amd64
18
- - build-on : arm64
16
+ platforms :
17
+ amd64 :
18
+ arm64 :
19
19
20
20
parts :
21
21
flutter-git :
@@ -45,12 +45,11 @@ parts:
45
45
plugin : nil
46
46
source : .
47
47
after : [flutter-git]
48
-
49
48
override-build : |
50
49
set -eu
51
50
flutter doctor
52
51
flutter pub get
53
- flutter build linux --release -v
52
+ flutter build linux --release -v --dart-define=API_KEY="$(cat secrets.txt)"
54
53
mkdir -p $CRAFT_PART_INSTALL/bin/
55
54
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
56
55
You can’t perform that action at this time.
0 commit comments