From 28a7ee32596eee6f915e7a76cafb9db7d0825086 Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Mon, 29 Jan 2024 10:09:42 -0800 Subject: [PATCH] updated --- .releaserc.js | 17 +++++++++-------- pubspec.yaml | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.releaserc.js b/.releaserc.js index aa47508a2c..87e4f0aead 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -17,15 +17,16 @@ module.exports = { "@semantic-release/changelog", "@semantic-release/release-notes-generator", [ - "@semantic-release/exec", + "@droidsolutions-oss/semantic-release-update-file", { - step: [ - 'IFS="." read -r -a nums <<< "${${nextRelease.version}/-dev/}.0"', - 'VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3]))', - 'sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml', - 'flutter build apk' - ].join(" && "), - }, + "files": [ + { + "path": ["pubspec.yaml"], + "type": "flutter", + "branches": ["main", "dev"] + } + ] + } ], [ "@semantic-release/git", diff --git a/pubspec.yaml b/pubspec.yaml index f9086c2091..f0f15b4773 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/ReVanced/revanced-manager publish_to: 'none' -version: 1.19.0-dev.3+101900003 +version: 1.18.0+101800000 environment: sdk: '>=3.0.0 <4.0.0'