Skip to content

Commit

Permalink
Added new release with autoupdate.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekko7072 committed Mar 6, 2023
1 parent fc0ad8f commit 05f1be4
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 25 deletions.
3 changes: 2 additions & 1 deletion .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
appcast.xml,1678105638114,bcd41c0e8a9dd4428f860f890480cbcb08bfdfbadc1d15ee08f46fac537f4029
0.0.4+6/lms-0.0.4+6-macos.zip,1678105357935,50793871095b5db3d05f9a9b183d1fc6c02dea3139096c274360c5638181dc23
appcast.xml,1678106938395,2b7c949ed445575d9cb783c93bafa07b64b667e49475ff07f2320ad382c3095c
0.0.5+6/lms-0.0.5+6-macos.zip,1678106638205,97f2d1483e6b43a16f9236d506a3d1035e41f24579782e3260d5657182beb42b
19 changes: 19 additions & 0 deletions RELEASE-CLI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# List of command to create a release

## macOS
1. Run: flutter_distributor release --name dev --jobs release-macos
2. Copy url : Successfully packaged URL_TO_COPY
3. Paste url and run: flutter pub run auto_updater:sign_update URL_TO_COPY
4. Copy sparkle:edSignature="ID_TO_COPY" length="LENGTH_TO_COPY"
5. Paste ID_TO_COPY and LENGTH_TO_COPY into appcast.xml
6. Change <enclosure url="VERSION_TO_CHANGE" to corretct new verion
6. Run: firebase deploy

## Windows TODO
1. Run: flutter_distributor release --name dev --jobs release-macos
2. Copy url : Successfully packaged URL_TO_COPY
3. Paste url and run: flutter pub run auto_updater:sign_update URL_TO_COPY
4. Copy sparkle:edSignature="ID_TO_COPY" length="LENGTH_TO_COPY"
5. Paste ID_TO_COPY and LENGTH_TO_COPY into appcast.xml
6. Change <enclosure url="VERSION_TO_CHANGE" to corretct new verion
6. Run: firebase deploy
Binary file added dist/0.0.5+6/lms-0.0.5+6-macos.zip
Binary file not shown.
12 changes: 6 additions & 6 deletions dist/appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<description>Most recent updates to LMS</description>
<language>en</language>
<item>
<title>Version 1.1.0</title>
<title>Version 0.0.4</title>
<sparkle:releaseNotesLink>
https://your_domain/your_path/release_notes.html
</sparkle:releaseNotesLink>
<pubDate>Mon, 6 Mar 2023 12:00:00 +0800</pubDate>
<enclosure url="0.0.4+6/lms-0.0.4+6-macos.zip"
sparkle:edSignature="cJA5AlmJTVfhOIbvCRC8pS1lrqu9iJ2hVZDyNu0AqhuyID3LXwiwZSg8+katIo57oU1iM6ihE0gEXk8pQaz7Ag=="
length="60473483"
sparkle:version="0.0.4"
<pubDate>Mon, 6 Mar 2023 13:00:00 +0800</pubDate>
<enclosure url="0.0.5+6/lms-0.0.5+6-macos.zip"
sparkle:edSignature="xKL+Dqgea7dUK9xBUcG5NqC4pKmX3bo2IeEbu7QGc7XEsY8kUlM1bVsingQJij63aCLuTn0CPZc54wd+xZJ8Aw=="
length="60473350"
sparkle:version="0.0.5"
sparkle:os="macos"
type="application/octet-stream" />
</item>
Expand Down
34 changes: 17 additions & 17 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ packages:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.2.1"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -101,10 +101,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.17.0"
console:
dependency: transitive
description:
Expand Down Expand Up @@ -260,10 +260,10 @@ packages:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
url: "https://pub.dev"
source: hosted
version: "0.6.7"
version: "0.6.5"
lints:
dependency: transitive
description:
Expand Down Expand Up @@ -300,10 +300,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: c94db23593b89766cda57aab9ac311e3616cf87c6fa4e9749df032f66f30dcb8
sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
url: "https://pub.dev"
source: hosted
version: "0.12.14"
version: "0.12.13"
material_color_utilities:
dependency: transitive
description:
Expand All @@ -316,10 +316,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "12307e7f0605ce3da64cf0db90e5fcab0869f3ca03f76be6bb2991ce0a55e82b"
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
version: "1.8.0"
msix:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -356,10 +356,10 @@ packages:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.8.2"
path_provider_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -388,10 +388,10 @@ packages:
dependency: transitive
description:
name: petitparser
sha256: a9346a3fbba7546a28374bdbcd7f54ea48bb47772bf3a7ab4bfaadc40bc8b8c6
sha256: "49392a45ced973e8d94a85fdb21293fbb40ba805fc49f2965101ae748a3683b4"
url: "https://pub.dev"
source: hosted
version: "5.3.0"
version: "5.1.0"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -577,10 +577,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "6182294da5abf431177fccc1ee02401f6df30f766bc6130a0852c6b6d7ee6b2d"
sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
url: "https://pub.dev"
source: hosted
version: "0.4.18"
version: "0.4.16"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -694,5 +694,5 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=2.19.0 <4.0.0"
dart: ">=2.18.0 <3.0.0"
flutter: ">=3.4.0-17.0.pre"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Link Management System

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 0.0.4+6
version: 0.0.5+6

environment:
sdk: ">=2.16.1 <3.0.0"
Expand Down

0 comments on commit 05f1be4

Please sign in to comment.