Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(windows): runner.rc file not updating at all #41

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/platforms/windows.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ void _setWindowsProductDetails(String appName) {
final runnerString = runnerFile.readAsStringSync();
final newProductDetailsRunnerString = runnerString
.replaceAll(
RegExp(r'VALUE "FileDescription", "(.*)" "\0"'),
RegExp(r'VALUE "FileDescription", "(.*)" "\\0"'),
'VALUE "FileDescription", "$appName" "\\0"',
)
.replaceAll(
RegExp(r'VALUE "InternalName", "(.*)" "\0"'),
RegExp(r'VALUE "InternalName", "(.*)" "\\0"'),
'VALUE "InternalName", "$appName" "\\0"',
)
.replaceAll(
RegExp(r'VALUE "ProductName", "(.*)" "\0"'),
RegExp(r'VALUE "ProductName", "(.*)" "\\0"'),
'VALUE "ProductName", "$appName" "\\0"',
);

Expand Down Expand Up @@ -133,7 +133,7 @@ void _setWindowsOrganization(dynamic organization) {

final runnerString = runnerFile.readAsStringSync();
final newOrganizationRunnerString = runnerString.replaceAll(
RegExp(r'VALUE "CompanyName", "(.*)" "\0"'),
RegExp(r'VALUE "CompanyName", "(.*)" "\\0"'),
'VALUE "CompanyName", "$organization" "\\0"',
);

Expand Down Expand Up @@ -166,7 +166,7 @@ void _setWindowsCopyrightNotice(dynamic notice) {

final runnerString = runnerFile.readAsStringSync();
final newCopyrightNoticeRunnerString = runnerString.replaceAll(
RegExp(r'VALUE "LegalCopyright", "(.*)" "\0"'),
RegExp(r'VALUE "LegalCopyright", "(.*)" "\\0"'),
'VALUE "LegalCopyright", "$notice" "\\0"',
);

Expand Down Expand Up @@ -250,7 +250,7 @@ void _setWindowsOriginalFilename(String exeName) {

final runnerString = runnerFile.readAsStringSync();
final newOriginalFilenameRunnerString = runnerString.replaceAll(
RegExp(r'VALUE "OriginalFilename", "(.*?)" "\0"'),
RegExp(r'VALUE "OriginalFilename", "(.*?)" "\\0"'),
'VALUE "OriginalFilename", "$exeName.exe" "\\0"',
);

Expand Down