Skip to content

Commit

Permalink
Update release process
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Sep 1, 2024
1 parent 157174c commit ad4a3e9
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### v2.0.156 31 Aug 2024

- Update libraries and Android target version

### v2.0.152 22 June 2023

- [new] Add ability to change save location on mac
Expand Down
61 changes: 59 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,62 @@ merge.

### Publish guide (for contributors)

`dart tools/scripts.dart bump`
`dart tools/scripts.dart release`
Prepare

- Update libraries
- flutter pub get
- cd ios && pod update
- cd macos && pod update

Update version

- Update changelog.md and version in pubspec.yaml and snapcraft.yaml
- git commit -am vX.X.X
- git tag "vX.X.X"
- git push && git push -f --tags

macOS

- flutter build macos
- Archive, Distribute -> Export to App store AND Distribute -> Direct Distribution (~/Downloads/airdash.app)
- npx appdmg appdmg.json ./build/airdash.dmg

iOS

- flutter build ipa
- Distribute with Transporter or Xcode (open build/ios/archive/MyApp.xcarchive)

Android

- flutter build appbundle
- cp build/app/outputs/bundle/release/app-release.aab build/airdash.aab
- open https://play.google.com/console/u/0/developers/6822011924129869646/app/4975414306006741094/tracks/production
- App Bundle Explorer -> Download signed apk -> build/airdash.apk

Windows

- Open Windows in VMWare
- Open ~\Documents\airdash in vs code
- git pull -r && flutter pub get
- dart run msix:create
- Copy msix file to build/airdash.msix
- Create new update -> open https://partner.microsoft.com/en-us/dashboard/products/9NL9K7CSG30T

Linux

- Open Ubuntu in VMWare
- Open ~\Documents\airdash in vs code
- git pull -r && flutter pub get
- /home/simon/tools/flutter/bin/flutter build linux --release
- snapcraft snap --output build/app.snap --use-lxd
- export SNAPCRAFT_STORE_CREDENTIALS=${Config.snapcraftLoginCredentials} && snapcraft upload --release=stable build/app.snap
- Copy snap to build/airdash.snap

Create Github release

- Download macOS app file
- npx appdmg appdmg.json ./build/airdash.dmg
- open https://github.com/simonbengtsson/airdash/releases/new
- Attach
- build/airdash.apk
- build/airdash.dmg
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {

defaultConfig {
applicationId "io.flown.airdash"
minSdkVersion 21 //flutter.minSdkVersion
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 1 addition & 1 deletion appdmg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"x": 100,
"y": 100,
"type": "file",
"path": "/.../Downloads/AirDash155.app<DOWNLOADED FROM APP STORE>"
"path": "build/airdashmac.app"
}
]
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: airdash
description: Share files anywhere
publish_to: "none"

version: 2.0.156+156
version: 2.0.157+157

environment:
sdk: ">=2.17.1 <3.0.0"
Expand Down
1 change: 1 addition & 0 deletions tools/linux_submitter.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:io';

import 'command_runner.dart';
import 'tools_config.dart';

Expand Down
2 changes: 1 addition & 1 deletion tools/windows_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class WindowsAppBuilder {
var repoPath = Config.windowsVmRepoPath;
runWinCommand('cd "$repoPath" && git reset --hard && git pull -r');
runWinCommand('cd "$repoPath" && flutter pub get');
runWinCommand('cd "$repoPath" && flutter pub run msix:create');
runWinCommand('cd "$repoPath" && dart run msix:create');
var localMsixPath = '${Config.localRepoPath}/build/airdash.msix';
fetchWindowsFile(Config.windowsVmMsixPath, localMsixPath);
});
Expand Down

0 comments on commit ad4a3e9

Please sign in to comment.