-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Do not edit. Auto-generated | ||
const buildVersion='0.1.0'; | ||
const buildVersion='0.2.3'; | ||
const buildDate='2022-10-08'; | ||
const buildOs='linux'; | ||
const buildShortHead='b2b3ccc'; | ||
const buildShortHead='28cb6da'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dart script/update_constants.dart | ||
dart compile exe bin/exe2dist.dart -o build/exe2dist.exe | ||
dart script/update_readme.dart | ||
#dart compile exe bin/exe2dist.dart -o build/exe2dist.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e && cd "${0%/*}" | ||
|
||
dart script/update_constants.dart | ||
dart script/update_readme.dart | ||
git add . | ||
git commit -m "publish" --allow-empty | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-FileCopyrightText: (c) 2022 Artsiom iG <github.com/rtmigo> | ||
// SPDX-License-Identifier: MIT | ||
|
||
|
||
import 'dart:io'; | ||
|
||
import 'package:yaml/yaml.dart'; | ||
|
||
String nowDate() => DateTime.now().toUtc().toString().substring(0, 10); | ||
|
||
String gitShortHead() => | ||
Process.runSync("git", ["rev-parse", "--short", "HEAD"]) | ||
.stdout.toString().trim(); | ||
|
||
void main() { | ||
final doc = loadYaml(File("pubspec.yaml").readAsStringSync()); | ||
final version = doc["version"]; | ||
|
||
final readmeFile = File("README.md"); | ||
final oldText = readmeFile.readAsStringSync(); | ||
final newText = oldText.replaceAll(RegExp("download/[\\d\\.]+/exe2dist"), "download/$version/exe2dist"); | ||
if (newText!=oldText) { | ||
print("Readme changed"); | ||
readmeFile.writeAsStringSync(newText); | ||
} else { | ||
print("Readme not changed"); | ||
} | ||
} |