aboutsummaryrefslogtreecommitdiff
path: root/program_info
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-03-23 13:20:14 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-04-16 18:13:09 +0200
commit90d4acd1a1c9abeb31548d152c155491e2cf98fa (patch)
tree28dabe485d9d03ef24d5802c7a6ff9ef0c8d0b52 /program_info
parenta42d2afceee9f6ea0d209cfb03b178defff1ce60 (diff)
downloadPrismLauncher-90d4acd1a1c9abeb31548d152c155491e2cf98fa.tar.gz
PrismLauncher-90d4acd1a1c9abeb31548d152c155491e2cf98fa.tar.bz2
PrismLauncher-90d4acd1a1c9abeb31548d152c155491e2cf98fa.zip
refactor: combine portable and system builds
Portable builds now have the same layout as system builds. If you want to build a portable bundle, you now need to additionally install the `portable` component. For example: $ cmake -Bbuild -DCMAKE_INSTALL_PREFIX=install ... $ cmake --build build $ cmake --install build $ cmake --install build --component portable
Diffstat (limited to 'program_info')
-rw-r--r--program_info/CMakeLists.txt2
-rw-r--r--program_info/portable.txt4
2 files changed, 6 insertions, 0 deletions
diff --git a/program_info/CMakeLists.txt b/program_info/CMakeLists.txt
index 9c243826..60549d8d 100644
--- a/program_info/CMakeLists.txt
+++ b/program_info/CMakeLists.txt
@@ -17,5 +17,7 @@ set(Launcher_Branding_ICNS "program_info/polymc.icns" PARENT_SCOPE)
set(Launcher_Branding_WindowsRC "program_info/polymc.rc" PARENT_SCOPE)
set(Launcher_Branding_LogoQRC "program_info/polymc.qrc" PARENT_SCOPE)
+set(Launcher_Portable_File "program_info/portable.txt" PARENT_SCOPE)
+
configure_file(org.polymc.PolyMC.desktop.in org.polymc.PolyMC.desktop)
configure_file(org.polymc.PolyMC.metainfo.xml.in org.polymc.PolyMC.metainfo.xml)
diff --git a/program_info/portable.txt b/program_info/portable.txt
new file mode 100644
index 00000000..b7e256a2
--- /dev/null
+++ b/program_info/portable.txt
@@ -0,0 +1,4 @@
+This file enables the portable mode for the launcher.
+
+If this file is present in the root directory of the launcher, it will store all data here. Otherwise it will store your data in your appdata directory.
+You can safely delete this file, if you don't want the launcher to store your data here.