Skip to content

Commit

Permalink
Update license tip
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Stackflow committed Sep 13, 2024
1 parent 9de2e54 commit 70bdada
Show file tree
Hide file tree
Showing 7 changed files with 327 additions and 292 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ jobs:
uses: Minionguyjpro/Inno-Setup-Action@v1.2.4
with:
path: "tools/windows_tools/CloudOTP.iss"
options: /F CloudOTP-${{ steps.get_version.outputs.version }}-windows-x86_64.exe

# Build Linux .deb
- name: Build Linux
Expand Down
8 changes: 8 additions & 0 deletions lib/Screens/Setting/about_setting_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ class _AboutSettingScreenState extends State<AboutSettingScreen>
style: Theme.of(context).textTheme.bodySmall,
),
),
Container(
margin: const EdgeInsets.only(top: 3),
alignment: Alignment.center,
child: Text(
S.current.licenseDetail(appLicense),
style: Theme.of(context).textTheme.bodySmall,
),
),
Container(
margin: const EdgeInsets.all(10),
child: ScrollConfiguration(
Expand Down
2 changes: 2 additions & 0 deletions lib/Utils/constant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const bool defaultEnableSafeMode = true;

const windowsKeyPath = r'SOFTWARE\Cloudchewie\CloudOTP';

const appLicense = "GPL-3.0";

String shareAppText = S.current.shareAppText(officialWebsite);
const String feedbackEmail = "2014027378@qq.com";
String feedbackSubject = S.current.feedbackSubject;
Expand Down
3 changes: 2 additions & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -675,5 +675,6 @@
"deleteToken": "Delete token",
"deleteTokenTitle": "Delete token {issuer}",
"deleteTokenMessage": "Do you want to delete the token {issuer}? ",
"deleteTokenSuccess": "The token {issuer} has been deleted"
"deleteTokenSuccess": "The token {issuer} has been deleted",
"licenseDetail": "Open source under {license} license"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_zh_CN.arb
Original file line number Diff line number Diff line change
Expand Up @@ -674,5 +674,6 @@
"deleteToken": "删除令牌",
"deleteTokenTitle": "删除令牌「{issuer}」",
"deleteTokenMessage": "是否删除令牌「{issuer}」?",
"deleteTokenSuccess": "已删除令牌「{issuer}」"
"deleteTokenSuccess": "已删除令牌「{issuer}」",
"licenseDetail": "根据{license}许可证开源"
}
Loading

0 comments on commit 70bdada

Please sign in to comment.