Skip to content

Commit

Permalink
Merge pull request #148 from lamarios/feature/add_reproducible_builds
Browse files Browse the repository at this point in the history
Feature/add reproducible builds
  • Loading branch information
lamarios authored Apr 25, 2023
2 parents 64c801a + a902243 commit 252de50
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
28 changes: 21 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,32 @@ steps:
- wget http://$SERVER_URL/service-account.json -O /tmp/service-account.json
- wget http://$SERVER_URL/key.properties -O /tmp/key.properties
- wget http://$SERVER_URL/keystore.jks -O /tmp/keystore.jks
- flutter doctor
- flutter pub get
- flutter pub run flutter_native_splash:create
- flutter build apk --split-per-abi
- flutter build apk
- flutter build appbundle
- cd ..
- cp -R src /tmp/build
- cd /tmp/build
- git submodule init
- git submodule update
- export PUB_CACHE=$(pwd)/.pub-cache
- ./submodules/flutter/bin/flutter doctor
- ./submodules/flutter/bin/flutter config --no-analytics
- ./submodules/flutter/bin/flutter pub get
- ./submodules/flutter/bin/flutter pub run flutter_native_splash:create
- ./submodules/flutter/bin/flutter build apk --split-per-abi
- ./submodules/flutter/bin/flutter build apk
- ./submodules/flutter/bin/flutter build appbundle
- cd /drone/src/
- mkdir -p build/app/outputs/flutter-apk
- mkdir -p build/app/outputs/bundle/release
- cp /tmp/build/build/app/outputs/flutter-apk/* build/app/outputs/flutter-apk/
- cp /tmp/build/build/app/outputs/bundle/release/* build/app/outputs/bundle/release/
- ls build/app/outputs/flutter-apk/
- ls build/app/outputs/bundle/release/
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files: "build/app/outputs/flutter-apk/*.apk"
files: "build/app/outputs/flutter-apk/*"
when:
event: tag
- name: Release Android
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "submodules/flutter"]
path = submodules/flutter
url = https://github.com/flutter/flutter.git
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: 1.7.14+261
version: 1.7.15+262

environment:
sdk: '>=2.19.1 <3.0.0'
Expand Down
1 change: 1 addition & 0 deletions submodules/flutter
Submodule flutter added at 4d9e56

0 comments on commit 252de50

Please sign in to comment.