22 changed files with 172 additions and 172 deletions
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
@ -1,32 +1,107 @@
|
||||
project(launcher) |
||||
|
||||
# Launcher |
||||
if(BUILD_NATIVE_COMPONENTS) |
||||
add_executable(launcher src/bootstrap.c src/patchelf.c src/crash-report.c) |
||||
if(MCPI_SERVER_MODE) |
||||
target_sources(launcher PRIVATE src/server/launcher.c) |
||||
else() |
||||
target_sources(launcher PRIVATE src/client/launcher.cpp) |
||||
endif() |
||||
target_link_libraries(launcher reborn-util) |
||||
# Install |
||||
install(TARGETS launcher DESTINATION "${MCPI_INSTALL_DIR}") |
||||
install_symlink("../${MCPI_INSTALL_DIR}/launcher" "bin/${MCPI_VARIANT_NAME}") |
||||
set(ICON_PATH "data/com.thebrokenrail.MCPIReborn.png") |
||||
set(ICON_TARGET_PATH "share/icons/hicolor/scalable/apps") |
||||
if(NOT MCPI_SERVER_MODE) |
||||
install(DIRECTORY "data/client/" DESTINATION ".") |
||||
install( |
||||
FILES "${ICON_PATH}" |
||||
DESTINATION "${ICON_TARGET_PATH}" |
||||
RENAME "com.thebrokenrail.MCPIRebornClient.png" |
||||
) |
||||
else() |
||||
install(DIRECTORY "data/server/" DESTINATION ".") |
||||
install( |
||||
FILES "${ICON_PATH}" |
||||
DESTINATION "${ICON_TARGET_PATH}" |
||||
RENAME "com.thebrokenrail.MCPIRebornServer.png" |
||||
) |
||||
endif() |
||||
add_executable(launcher src/bootstrap.c src/patchelf.c src/crash-report.c) |
||||
if(MCPI_SERVER_MODE) |
||||
target_sources(launcher PRIVATE src/server/launcher.c) |
||||
else() |
||||
target_sources(launcher PRIVATE src/client/launcher.cpp) |
||||
endif() |
||||
target_link_libraries(launcher reborn-util) |
||||
|
||||
# Install |
||||
install(TARGETS launcher DESTINATION "${MCPI_INSTALL_DIR}") |
||||
install_symlink("../${MCPI_INSTALL_DIR}/launcher" "bin/${MCPI_VARIANT_NAME}") |
||||
|
||||
# Install Available Feature Flags List |
||||
if(NOT MCPI_SERVER_MODE) |
||||
install(FILES "src/client/available-feature-flags" DESTINATION "${MCPI_INSTALL_DIR}") |
||||
endif() |
||||
|
||||
# Install Desktop Entry |
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/launcher.desktop" |
||||
"[Desktop Entry]\n" |
||||
"Name=${MCPI_APP_TITLE}\n" |
||||
"Comment=Fun with Blocks\n" |
||||
"Icon=${MCPI_APP_ID}\n" |
||||
"Exec=${MCPI_VARIANT_NAME}\n" |
||||
"Type=Application\n" |
||||
"Categories=Game;\n" |
||||
) |
||||
if(MCPI_SERVER_MODE) |
||||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/launcher.desktop" |
||||
"Terminal=true\n" |
||||
"NoDisplay=true\n" |
||||
) |
||||
else() |
||||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/launcher.desktop" |
||||
"Terminal=false\n" |
||||
"StartupNotify=false\n" |
||||
"StartupWMClass=${MCPI_APP_TITLE}\n" |
||||
) |
||||
endif() |
||||
install( |
||||
FILES "${CMAKE_CURRENT_BINARY_DIR}/launcher.desktop" |
||||
DESTINATION "share/applications" |
||||
RENAME "${MCPI_APP_ID}.desktop" |
||||
) |
||||
|
||||
# Install AppStream Metadata |
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/appstream.xml" |
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
||||
"<component type=\"desktop\">\n" |
||||
" <id>${MCPI_APP_ID}</id>\n" |
||||
" <name>${MCPI_APP_TITLE}</name>\n" |
||||
" <metadata_license>CC0-1.0</metadata_license>\n" |
||||
" <summary>Fun with Blocks</summary>\n" |
||||
" <description><p>Minecraft: Pi Edition Modding Project.</p><p>NOTE: This is not verified by, affiliated with, or supported by Mojang or Microsoft.</p></description>\n" |
||||
" <url type=\"homepage\">https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-reborn</url>\n" |
||||
" <launchable type=\"desktop-id\">${MCPI_APP_ID}.desktop</launchable>\n" |
||||
" <provides>\n" |
||||
" <id>com.thebrokenrail.MCPIRebornClient.desktop</id>\n" |
||||
" </provides>\n" |
||||
" <project_license>LicenseRef-proprietary</project_license>\n" |
||||
" <developer_name>TheBrokenRail & Mojang AB</developer_name>\n" |
||||
" <content_rating type=\"oars-1.0\">\n" |
||||
" <content_attribute id=\"violence-cartoon\">moderate</content_attribute>\n" |
||||
" <content_attribute id=\"violence-fantasy\">none</content_attribute>\n" |
||||
" <content_attribute id=\"violence-realistic\">none</content_attribute>\n" |
||||
" <content_attribute id=\"violence-bloodshed\">none</content_attribute>\n" |
||||
" <content_attribute id=\"violence-sexual\">none</content_attribute>\n" |
||||
" <content_attribute id=\"drugs-alcohol\">none</content_attribute>\n" |
||||
" <content_attribute id=\"drugs-narcotics\">none</content_attribute>\n" |
||||
" <content_attribute id=\"drugs-tobacco\">none</content_attribute>\n" |
||||
" <content_attribute id=\"sex-nudity\">none</content_attribute>\n" |
||||
" <content_attribute id=\"sex-themes\">none</content_attribute>\n" |
||||
" <content_attribute id=\"language-profanity\">none</content_attribute>\n" |
||||
" <content_attribute id=\"language-humor\">none</content_attribute>\n" |
||||
" <content_attribute id=\"language-discrimination\">none</content_attribute>\n" |
||||
" <content_attribute id=\"social-chat\">intense</content_attribute>\n" |
||||
" <content_attribute id=\"social-info\">none</content_attribute>\n" |
||||
" <content_attribute id=\"social-audio\">none</content_attribute>\n" |
||||
" <content_attribute id=\"social-location\">none</content_attribute>\n" |
||||
" <content_attribute id=\"social-contacts\">none</content_attribute>\n" |
||||
" <content_attribute id=\"money-purchasing\">none</content_attribute>\n" |
||||
" <content_attribute id=\"money-gambling\">none</content_attribute>\n" |
||||
" </content_rating>\n" |
||||
" <releases>\n" |
||||
" <release version=\"${MCPI_VERSION}\" date=\"${MCPI_VERSION_DATE}\">\n" |
||||
" </release>\n" |
||||
) |
||||
if(NOT MCPI_SERVER_MODE) |
||||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/appstream.xml" |
||||
" <screenshots>\n" |
||||
" <screenshot type=\"default\">\n" |
||||
" <image>https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-reborn/raw/branch/master/images/start.png</image>\n" |
||||
" </screenshot>\n" |
||||
" </screenshots>\n" |
||||
) |
||||
endif() |
||||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/appstream.xml" |
||||
"</component>\n" |
||||
) |
||||
install( |
||||
FILES "${CMAKE_CURRENT_BINARY_DIR}/appstream.xml" |
||||
DESTINATION "share/metainfo" |
||||
RENAME "${MCPI_APP_ID}.appdata.xml" |
||||
) |
||||
|
@ -1,10 +0,0 @@
|
||||
[Desktop Entry] |
||||
Name=Minecraft: Pi Edition: Reborn (Client) |
||||
Comment=Fun with Blocks |
||||
Icon=com.thebrokenrail.MCPIRebornClient |
||||
StartupNotify=false |
||||
StartupWMClass=Minecraft: Pi Edition: Reborn |
||||
Exec=minecraft-pi-reborn-client |
||||
Terminal=false |
||||
Type=Application |
||||
Categories=Game; |
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<component type="desktop"> |
||||
<id>com.thebrokenrail.MCPIRebornClient</id> |
||||
<name>Minecraft: Pi Edition: Reborn (Client)</name> |
||||
<metadata_license>CC0-1.0</metadata_license> |
||||
<summary>Fun with Blocks</summary> |
||||
<description><p>Minecraft: Pi Edition Modding Project.</p><p>NOTE: This is not verified by, affiliated with, or supported by Mojang or Microsoft.</p></description> |
||||
<url type="homepage">https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-reborn</url> |
||||
<screenshots> |
||||
<screenshot type="default"> |
||||
<image>https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-reborn/raw/branch/master/images/start.png</image> |
||||
</screenshot> |
||||
</screenshots> |
||||
<launchable type="desktop-id">com.thebrokenrail.MCPIRebornClient.desktop</launchable> |
||||
<provides> |
||||
<id>com.thebrokenrail.MCPIRebornClient.desktop</id> |
||||
</provides> |
||||
<project_license>LicenseRef-proprietary</project_license> |
||||
<developer_name>TheBrokenRail & Mojang AB</developer_name> |
||||
<content_rating type="oars-1.0"> |
||||
<content_attribute id="violence-cartoon">moderate</content_attribute> |
||||
<content_attribute id="violence-fantasy">none</content_attribute> |
||||
<content_attribute id="violence-realistic">none</content_attribute> |
||||
<content_attribute id="violence-bloodshed">none</content_attribute> |
||||
<content_attribute id="violence-sexual">none</content_attribute> |
||||
<content_attribute id="drugs-alcohol">none</content_attribute> |
||||
<content_attribute id="drugs-narcotics">none</content_attribute> |
||||
<content_attribute id="drugs-tobacco">none</content_attribute> |
||||
<content_attribute id="sex-nudity">none</content_attribute> |
||||
<content_attribute id="sex-themes">none</content_attribute> |
||||
<content_attribute id="language-profanity">none</content_attribute> |
||||
<content_attribute id="language-humor">none</content_attribute> |
||||
<content_attribute id="language-discrimination">none</content_attribute> |
||||
<content_attribute id="social-chat">intense</content_attribute> |
||||
<content_attribute id="social-info">none</content_attribute> |
||||
<content_attribute id="social-audio">none</content_attribute> |
||||
<content_attribute id="social-location">none</content_attribute> |
||||
<content_attribute id="social-contacts">none</content_attribute> |
||||
<content_attribute id="money-purchasing">none</content_attribute> |
||||
<content_attribute id="money-gambling">none</content_attribute> |
||||
</content_rating> |
||||
</component> |
||||
|
@ -1,9 +0,0 @@
|
||||
[Desktop Entry] |
||||
Name=Minecraft: Pi Edition: Reborn (Server) |
||||
Comment=Fun with Blocks |
||||
Icon=com.thebrokenrail.MCPIRebornServer |
||||
Exec=minecraft-pi-reborn-server |
||||
Terminal=true |
||||
Type=Application |
||||
Categories=Game; |
||||
NoDisplay=true |
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<component type="desktop"> |
||||
<id>com.thebrokenrail.MCPIRebornServer</id> |
||||
<name>Minecraft: Pi Edition: Reborn (Server)</name> |
||||
<metadata_license>CC0-1.0</metadata_license> |
||||
<summary>Fun with Blocks</summary> |
||||
<description><p>Minecraft: Pi Edition Modding Project.</p><p>NOTE: This is not verified by, affiliated with, or supported by Mojang or Microsoft.</p></description> |
||||
<url type="homepage">https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-reborn</url> |
||||
<launchable type="desktop-id">com.thebrokenrail.MCPIRebornServer.desktop</launchable> |
||||
<provides> |
||||
<id>com.thebrokenrail.MCPIRebornServer.desktop</id> |
||||
</provides> |
||||
<project_license>LicenseRef-proprietary</project_license> |
||||
<developer_name>TheBrokenRail & Mojang AB</developer_name> |
||||
<content_rating type="oars-1.0"> |
||||
<content_attribute id="violence-cartoon">moderate</content_attribute> |
||||
<content_attribute id="violence-fantasy">none</content_attribute> |
||||
<content_attribute id="violence-realistic">none</content_attribute> |
||||
<content_attribute id="violence-bloodshed">none</content_attribute> |
||||
<content_attribute id="violence-sexual">none</content_attribute> |
||||
<content_attribute id="drugs-alcohol">none</content_attribute> |
||||
<content_attribute id="drugs-narcotics">none</content_attribute> |
||||
<content_attribute id="drugs-tobacco">none</content_attribute> |
||||
<content_attribute id="sex-nudity">none</content_attribute> |
||||
<content_attribute id="sex-themes">none</content_attribute> |
||||
<content_attribute id="language-profanity">none</content_attribute> |
||||
<content_attribute id="language-humor">none</content_attribute> |
||||
<content_attribute id="language-discrimination">none</content_attribute> |
||||
<content_attribute id="social-chat">intense</content_attribute> |
||||
<content_attribute id="social-info">none</content_attribute> |
||||
<content_attribute id="social-audio">none</content_attribute> |
||||
<content_attribute id="social-location">none</content_attribute> |
||||
<content_attribute id="social-contacts">none</content_attribute> |
||||
<content_attribute id="money-purchasing">none</content_attribute> |
||||
<content_attribute id="money-gambling">none</content_attribute> |
||||
</content_rating> |
||||
</component> |
||||
|
@ -1,3 +0,0 @@
|
||||
#pragma once |
||||
|
||||
#define GUI_TITLE "Minecraft: Pi Edition: Reborn" |
@ -0,0 +1,9 @@
|
||||
#pragma once |
||||
|
||||
#cmakedefine MCPI_SERVER_MODE |
||||
#cmakedefine MCPI_HEADLESS_MODE |
||||
#cmakedefine MCPI_IS_APPIMAGE_BUILD |
||||
#cmakedefine MCPI_BUNDLE_ARMHF_SYSROOT |
||||
#cmakedefine MCPI_USE_GLES1_COMPATIBILITY_LAYER |
||||
#cmakedefine MCPI_APP_TITLE "@MCPI_APP_TITLE@" |
||||
#cmakedefine MCPI_VERSION "@MCPI_VERSION@" |
Loading…
Reference in new issue