Skip to content

Commit 28af4a3

Browse files
authored
Update post_build.dart branch check to main (#184)
- Update `tool/post_build.dart` to inject build info into `index.html` when building from `main` and advance package version to `4.0.2-wip`.
1 parent 56eff25 commit 28af4a3

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 4.0.2-wip
2+
13
## 4.0.1
24

35
- Fix Reed-Solomon block table for QR version 15 at high error correction

‎pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: qr
2-
version: 4.0.1
2+
version: 4.0.2-wip
33
description: >-
44
A QR code generation library for Dart.
55
Supports QR code version 1 through 40, error correction and redundancy.

‎tool/post_build.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Future<void> main(List<String> args) async {
3838
}
3939

4040
final currentBranch = _runGit(['branch', '--show-current']);
41-
if (currentBranch != 'master') {
41+
if (currentBranch != 'main') {
4242
print(
4343
'Skipping build info injection: '
44-
'current branch is "$currentBranch" (expected "master").',
44+
'current branch is "$currentBranch" (expected "main").',
4545
);
4646
return;
4747
}

0 commit comments

Comments
 (0)