:rocket Ready to launch!

This commit is contained in:
2024-08-30 14:05:11 +08:00
parent a95292a9ef
commit f772bbdbbc
22 changed files with 221 additions and 26 deletions

View File

@ -4,7 +4,7 @@ project(rhythm_box LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "rhythm_box")
set(BINARY_NAME "RhythmBox")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.

View File

@ -11,6 +11,7 @@
#include <media_kit_libs_windows_audio/media_kit_libs_windows_audio_plugin_c_api.h>
#include <screen_retriever/screen_retriever_plugin.h>
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>
#include <window_manager/window_manager_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
@ -24,6 +25,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
registry->GetRegistrarForPlugin("ScreenRetrieverPlugin"));
Sqlite3FlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("Sqlite3FlutterLibsPlugin"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
WindowManagerPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("WindowManagerPlugin"));
}

View File

@ -8,6 +8,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
media_kit_libs_windows_audio
screen_retriever
sqlite3_flutter_libs
url_launcher_windows
window_manager
)

View File

@ -90,12 +90,12 @@ BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "dev.solsynth" "\0"
VALUE "FileDescription", "rhythm_box" "\0"
VALUE "FileDescription", "RhythmBox" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "rhythm_box" "\0"
VALUE "LegalCopyright", "Copyright (C) 2024 dev.solsynth. All rights reserved." "\0"
VALUE "OriginalFilename", "rhythm_box.exe" "\0"
VALUE "ProductName", "rhythm_box" "\0"
VALUE "InternalName", "RhythmBox" "\0"
VALUE "LegalCopyright", "Copyright (C) 2024 Solsynth LLC. All rights reserved." "\0"
VALUE "OriginalFilename", "RhythmBox.exe" "\0"
VALUE "ProductName", "RhythmBox" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END

View File

@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.Create(L"rhythm_box", origin, size)) {
if (!window.Create(L"RhythmBox", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);