Skip to content

Commit

Permalink
Add the warning for the Quadrant Classic users
Browse files Browse the repository at this point in the history
  • Loading branch information
mrquantumoff committed Feb 8, 2025
1 parent 6aae209 commit ba98359
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
flutter clean
flutter pub get
flutter build windows --release --build-number ${{github.run_number}} --split-debug-info --obfuscate --dart-define QUADRANT_OAUTH2_CLIENT_SECRET=${{secrets.CLIENT_SECRET}} --dart-define QUADRANT_OAUTH2_CLIENT_ID=${{secrets.CLIENT_ID}} --dart-define QUADRANT_QNT_API_KEY=${{ secrets.QUADRANT_QNT_API_KEY_WINDOWS }} --dart-define ETERNAL_API_KEY='${{ secrets.ETERNAL_API_KEY }}'
flutter build windows --release --build-number ${{github.run_number}} --split-debug-info --obfuscate
makensis .\setup.nsi
dart run msix:create -v --output-path windows-build --build-windows false
- name: Compress Windows build to .zip
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
sudo apt install meson clang build-essential cmake curl file git unzip xz-utils zip libglu1-mesa ninja-build libnotify-dev libappindicator3-dev pkg-config libgtk-3-dev
flutter clean
flutter pub get
flutter build linux --release --build-number ${{github.run_number}} --split-debug-info --obfuscate --dart-define QUADRANT_OAUTH2_CLIENT_SECRET='${{secrets.CLIENT_SECRET}}' --dart-define QUADRANT_OAUTH2_CLIENT_ID='${{secrets.CLIENT_ID}}' --dart-define QUADRANT_QNT_API_KEY='${{secrets.QUADRANT_QNT_API_KEY}}' --dart-define ETERNAL_API_KEY='${{ secrets.ETERNAL_API_KEY }}'
flutter build linux --release --build-number ${{github.run_number}} --split-debug-info --obfuscate
tar -czvf GNULinuxBuild.tar.gz ./build/linux/x64/release/bundle
- name: Upload the GNU/Linux build
if: matrix.platform == 'ubuntu-latest'
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
if: matrix.platform == 'macos-latest'
run: |
flutter pub get
flutter build macos --release --build-number ${{github.run_number}} --split-debug-info --obfuscate --dart-define QUADRANT_OAUTH2_CLIENT_SECRET='${{secrets.CLIENT_SECRET}}' --dart-define QUADRANT_OAUTH2_CLIENT_ID='${{secrets.CLIENT_ID}}' --dart-define QUADRANT_QNT_API_KEY='${{secrets.QUADRANT_QNT_API_KEY}}' --dart-define ETERNAL_API_KEY='${{ secrets.ETERNAL_API_KEY }}'
flutter build macos --release --build-number ${{github.run_number}} --split-debug-info --obfuscate
tar -czvf macOSBuild.tar.gz build/macos/Build/Products/Release/Quadrant.app
# For future use
# pkgbuild --install-location /Applications --component "./build/macos/Build/Products/Release/Minecraft Modpack Manager Reborn.app" ./mcmodpackmanagerMacOS.pkg --identifier dev.mrquantumoff.mcmodpackmanager
Expand Down
25 changes: 5 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@
### Installation guide:

##### The app is available on these stores:
##### This the legacy version of the app, it is not maintained anymore. Please migrate to Quadrant Next in order to use the latest features.

##### Read the warnings before installation!

<a href="https://flathub.org/apps/details/dev.mrquantumoff.mcmodpackmanager">
<img width="200" alt="Download on Flathub" src="https://dl.flathub.org/assets/badges/flathub-badge-i-en.svg"/>
</a>

<a href="https://www.microsoft.com/store/apps/9NLT70M0TVD0">
<img width="200" src="https://get.microsoft.com/images/en-us%20light.svg" alt="Download on Microsoft Store" />
</a>

#### OR

[Grab the latest build manually (Linux/Windows/macOS)](https://github.com/mrquantumoff/quadrant/releases/latest)

### Working features
Expand All @@ -31,23 +21,18 @@

- Opening modpacks folder

- Installing mods and resourcepacks (not modpacks) from curseforge/modrinth
- Installing mods and resourcepacks (not modpacks) from modrinth

- Installing shaders from modrinth and (partially) curseforge
- Installing shaders from modrinth

- Importing and exporting modpacks

- Updating mods from curseforge and modrinth

- Sharing modpacks with your friends

- Backing up modpacks to the cloud

- Collaborating on modpacks with your friends
- Updating mods from modrinth

> [!WARNING]
>
> #### If app fails to apply your modpacks after installation, delete your mods folder.
>
> #### The app relies on time being synced correctly on your machine. If you encounter issues with features like Quadrant ID / Quadrant Share / Quadrant Sync, make sure that your time is set correctly. If that doesn't help, check the [status](https://status.bultek.com.ua/status/mrquantumoff) page
> [!TIP]
Expand Down
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -862,13 +862,15 @@ class _QuadrantState extends State<Quadrant>
NavigationRailDestination(
icon: const Icon(Icons.sync_rounded),
label: Text(AppLocalizations.of(context)!.importMods),
disabled: true,
),
NavigationRailDestination(
icon: Badge(
label: Text(accountNotifications.toString()),
isLabelVisible: accountNotifications > 0,
child: const Icon(Icons.account_circle_outlined),
),
disabled: true,
label: Text(AppLocalizations.of(context)!.account),
),
NavigationRailDestination(
Expand All @@ -877,6 +879,7 @@ class _QuadrantState extends State<Quadrant>
),
],
onDestinationSelected: (int value) {
showLegacyWarning(context);
setState(() {
currentPage = value;
});
Expand Down
23 changes: 23 additions & 0 deletions lib/other/backend.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import 'package:quadrant/pages/web/mod/install_mod_page.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:quadrant/pages/web/mod/mod.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:window_manager/window_manager.dart';

Directory getMinecraftFolder({bool onInit = false}) {
Expand Down Expand Up @@ -1411,3 +1412,25 @@ class QuadrantImageCacheManager {
),
);
}

Future<void> showLegacyWarning(BuildContext context) async {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text("Quadrant Classic -> Quadrant Next"),
content: Text(AppLocalizations.of(context)!.legacyWarning),
actions: [
TextButton(
onPressed: () {
launchUrl(Uri.parse(
"https://github.com/mrquantumoff/quadrant/?tab=readme-ov-file#installation-guide"));
Navigator.of(context).pop();
},
child: Text(AppLocalizations.of(context)!.openLatestRelease),
)
],
);
},
);
}
4 changes: 3 additions & 1 deletion locales/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -398,5 +398,7 @@
"cacheStorageLimit": "Maximum cache age",
"@cacheStorageLimit": {},
"quadrantSettingsSync": "Sync Quadrant settings with Quadrant ID",
"@quadrantSettingsSync": {}
"@quadrantSettingsSync": {},
"legacyWarning": "This the legacy version of the app, it is not maintained anymore. Please migrate to Quadrant Next in order to use the latest features.",
"@legacyWarning": {}
}
3 changes: 2 additions & 1 deletion locales/app_tr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,6 @@
}
},
"@clearCache": {},
"@cacheStorageLimit": {}
"@cacheStorageLimit": {},
"legacyWarning": "Bu uygulama eski sürümüdür. En son özellikleri kullanmak için Quadrant Next'e geçiş yapmanız gerekir."
}
3 changes: 2 additions & 1 deletion locales/app_uk.arb
Original file line number Diff line number Diff line change
Expand Up @@ -396,5 +396,6 @@
}
},
"@clearCache": {},
"@cacheStorageLimit": {}
"@cacheStorageLimit": {},
"legacyWarning": "Це застаріла версія програми, вона більше не підтримується. Будь ласка, перейдіть до Quadrant Next, щоб отримати усі можливості."
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ flutter_icons:
image_path: assets/icons/logo.png
icon_size: 256
msix_config:
display_name: QuadrantMC
display_name: Quadrant Classic
publisher_display_name: MrQuantumOFF (Demir Yerli)
publisher: CN=010914FC-8843-4963-A3FE-E3E06E6D9F53
identity_name: 58734MrQuantumOFFDemirYer.MinecraftModpackManagerR
Expand Down

0 comments on commit ba98359

Please sign in to comment.