diff --git a/Cargo.lock b/Cargo.lock index 7859393..ef1f644 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -720,7 +720,7 @@ dependencies = [ [[package]] name = "wfassoc" -version = "0.1.0" +version = "1.0.0" dependencies = [ "indexmap", "regex", @@ -734,7 +734,7 @@ dependencies = [ [[package]] name = "wfassoc-cdylib" -version = "0.1.0" +version = "1.0.0" dependencies = [ "num_enum", "sarasacw-omrf", @@ -745,7 +745,7 @@ dependencies = [ [[package]] name = "wfassoc-exec" -version = "0.1.0" +version = "1.0.0" dependencies = [ "clap", "comfy-table", diff --git a/example/qwfassoc/.gitignore b/example/qwfassoc/.gitignore new file mode 100644 index 0000000..f7f2e37 --- /dev/null +++ b/example/qwfassoc/.gitignore @@ -0,0 +1,117 @@ +## ===== Personal ===== +build/ +install/ + +## ===== Visual Studio (Partial) ===== +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +## ===== C++ ===== +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +## ===== Qt ===== +# C++ objects and libs +*.slo +*.lo +*.o +*.a +*.la +*.lai +*.so +*.so.* +*.dll +*.dylib + +# Qt-es +object_script.*.Release +object_script.*.Debug +*_plugin_import.cpp +/.qmake.cache +/.qmake.stash +*.pro.user +*.pro.user.* +*.qbs.user +*.qbs.user.* +*.moc +moc_*.cpp +moc_*.h +qrc_*.cpp +ui_*.h +*.qmlc +*.jsc +Makefile* +*build-* +*.qm +*.prl + +# Qt unit tests +target_wrapper.* + +# QtCreator +*.autosave + +# QtCreator Qml +*.qmlproject.user +*.qmlproject.user.* + +# QtCreator CMake +CMakeLists.txt.user* + +# QtCreator 4.8< compilation database +compile_commands.json + +# QtCreator local machine specific files for imported projects +*creator.user* + +*_qmlcache.qrc diff --git a/example/qwfassoc/CMakeLists.txt b/example/qwfassoc/CMakeLists.txt index c22c62c..9201d88 100644 --- a/example/qwfassoc/CMakeLists.txt +++ b/example/qwfassoc/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) -project(qwfassoc_suite LANGUAGES CXX) +project(qwfassoc LANGUAGES CXX) # Qt 6 requires C++17 at minimum. set(CMAKE_CXX_STANDARD 17) @@ -22,10 +22,10 @@ set(CMAKE_AUTORCC ON) # toml11 is only needed when the standalone executable is built, so it is # looked up conditionally below. find_package(Qt6 REQUIRED COMPONENTS Widgets LinguistTools) -find_package(wfassoc REQUIRED) +find_package(wfassoc 1.0.0 REQUIRED) # The standalone executable is optional: embedders may want only the library. -option(QWFASSOC_BUILD_STANDALONE "Build the qwfassoc-standalone executable" ON) +option(QWFASSOC_BUILD_STANDALONE "Build the qwfassoc-standalone executable" OFF) add_subdirectory(qwfassoc) diff --git a/example/qwfassoc/qwfassoc-standalone/src/manifest_parser.cpp b/example/qwfassoc/qwfassoc-standalone/src/manifest_parser.cpp index d915ec8..2fc8b1d 100644 --- a/example/qwfassoc/qwfassoc-standalone/src/manifest_parser.cpp +++ b/example/qwfassoc/qwfassoc-standalone/src/manifest_parser.cpp @@ -91,7 +91,7 @@ Manifest parseManifestFile(const std::string& path) { } } catch (const std::exception& e) { throw std::runtime_error( - "Manifest \"exts\" table contains an invalid entry: " + + std::string("Manifest \"exts\" table contains an invalid entry: ") + e.what()); } } diff --git a/wfassoc-cdylib/Cargo.toml b/wfassoc-cdylib/Cargo.toml index 9add552..90c6ae8 100644 --- a/wfassoc-cdylib/Cargo.toml +++ b/wfassoc-cdylib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wfassoc-cdylib" -version = "0.1.0" +version = "1.0.0" authors = ["yyc12345"] edition = "2024" description = "The dynamic library exposed for C/C++ users reading or manipulating Windows file assocation." diff --git a/wfassoc-exec/Cargo.toml b/wfassoc-exec/Cargo.toml index 6d372a3..378f097 100644 --- a/wfassoc-exec/Cargo.toml +++ b/wfassoc-exec/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wfassoc-exec" -version = "0.1.0" +version = "1.0.0" authors = ["yyc12345"] edition = "2024" description = "The executable configuring Windows file assocation according to user given profile and request." diff --git a/wfassoc/Cargo.toml b/wfassoc/Cargo.toml index 0c7c45c..875db0c 100644 --- a/wfassoc/Cargo.toml +++ b/wfassoc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wfassoc" -version = "0.1.0" +version = "1.0.0" authors = ["yyc12345"] edition = "2024" description = "The library reading or manipulating Windows file assocation."