Skip to content

Commit

Permalink
ref: rename apply_version to bump_version
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Jul 20, 2024
1 parent 00b06ce commit eda73b4
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README-cs.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ Pokud máte rádi Saber, zvažte prosím jeho podporu pomocí
<summary>Zobrazit/skrýt poznámky pro vývojáře</summary>

- Když aktualizujete **verzi aplikace**:
- Spusťte `./scripts/apply_version.sh <název-verze> <kód-verze>`
(Pro více informací spusťte `./scripts/apply_version.sh --help`)
- Spusťte `./scripts/bump_version.sh <název-verze> <kód-verze>`
(Pro více informací spusťte `./scripts/bump_version.sh --help`)
- Aktualizujte záznamy o změnách v `metadata/en-US/changelogs/`
a `flatpak/com.adilhanney.saber.metainfo.xml`,
a spusťte `dart scripts/translate_changelogs.dart`, jak je udáno skriptem.
Expand Down
4 changes: 2 additions & 2 deletions README-de.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ Falls dir Saber gefällt, bitte denke darüber nach das Projekt wie folgt zu unt
<summary>Klicken um die Entwicklungshinweise ein- oder ausblenden</summary>

- Beim Update der **app version**:
- Führe `./scripts/apply_version.sh <version-name> <version-code>` aus
(führe `./scripts/apply_version.sh --help` für mehr Informationen aus)
- Führe `./scripts/bump_version.sh <version-name> <version-code>` aus
(führe `./scripts/bump_version.sh --help` für mehr Informationen aus)
- Update die Changelogs in `metadata/en-US/changelogs/`
und `flatpak/com.adilhanney.saber.metainfo.xml`
und führe `dart scripts/translate_changelogs.dart` nach Anleitung des Skripts aus.
Expand Down
4 changes: 2 additions & 2 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ Windows 安装器使用 [Inno Setup](https://jrsoftware.org/isinfo.php) 创建
<summary>显示/隐藏开发说明</summary>

- 当更新**应用版本**时:
- 运行 `./scripts/apply_version.sh <version-name> <version-code>`
(运行 `./scripts/apply_version.sh --help` 获取更多信息)
- 运行 `./scripts/bump_version.sh <version-name> <version-code>`
(运行 `./scripts/bump_version.sh --help` 获取更多信息)
- 更新 `metadata/en-US/changelogs/` 中的变更日志和 `flatpak/com.adilhanney.saber.metainfo.xml`,并按照剧本的指示运行 `dart scripts/translate_changelogs.dart`。
- 当更新**图标**时,运行以下命令:
- 概述:`dart run icons_launcher:create`
Expand Down
4 changes: 2 additions & 2 deletions README-zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ Windows 安裝程式是使用 [Inno Setup](https://jrsoftware.org/isinfo.php)
<summary>顯示/隱藏開發筆記</summary>

- When updating the **app version**:
- Run `./scripts/apply_version.sh <version-name> <version-code>`
(Run `./scripts/apply_version.sh --help` for more info)
- Run `./scripts/bump_version.sh <version-name> <version-code>`
(Run `./scripts/bump_version.sh --help` for more info)
- Update the changelogs in `metadata/en-US/changelogs/`
and `flatpak/com.adilhanney.saber.metainfo.xml`,
and run `dart scripts/translate_changelogs.dart` as directed by the script.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ If you like Saber, please consider supporting it by:
<summary>Show/hide development notes</summary>

- When updating the **app version**:
- Run `./scripts/apply_version.sh <version-name> <version-code>`
(Run `./scripts/apply_version.sh --help` for more info)
- Run `./scripts/bump_version.sh <version-name> <version-code>`
(Run `./scripts/bump_version.sh --help` for more info)
- Update the changelogs in `metadata/en-US/changelogs/`
and `flatpak/com.adilhanney.saber.metainfo.xml`,
and run `dart scripts/translate_changelogs.dart` as directed by the script.
Expand Down
4 changes: 2 additions & 2 deletions lib/data/version.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is generated by the apply_version script.
// Run `./scripts/apply_version.dart --help` for more information.
// This file is generated by the bump_version script.
// Run `./scripts/bump_version.dart --help` for more information.

/// The current app version as an ordinal number.
const int buildNumber = 24020;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/version_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import 'package:saber/data/version.dart';
const String dummyChangelog = 'Release_notes_will_be_added_here';

void main() {
test('Does apply_version.dart find changes needed?', () async {
final result = await Process.run('./scripts/apply_version.dart', [
test('Does bump_version.dart find changes needed?', () async {
final result = await Process.run('./scripts/bump_version.dart', [
'--custom',
buildName,
'--fail-on-changes',
Expand All @@ -28,7 +28,7 @@ void main() {
}
expect(exitCode, isNot(equals(10)),
reason: 'Changes needed to be made. '
'Please re-run `./scripts/apply_version.dart`');
'Please re-run `./scripts/bump_version.dart`');
});

test('Check for dummy text in changelogs', () async {
Expand Down

0 comments on commit eda73b4

Please sign in to comment.