Skip to content

Commit

Permalink
🐛 Fix : rename to Coollab
Browse files Browse the repository at this point in the history
  • Loading branch information
smallboyc committed Jul 24, 2024
1 parent 686816a commit 1fa3e4f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create_launcher_installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
cmake_configure_args: -D WARNINGS_AS_ERRORS_FOR_COOLLAB=ON -D COOLLAB_REQUIRE_ALL_FEATURES=ON
cmakelists_folder: "."
cmake_target: Coollab-Launcher
cmake_target: Coollab

jobs:
create-release-executables:
Expand All @@ -23,21 +23,21 @@ jobs:
os: windows-latest,
cmake_configure_args: -D CMAKE_C_COMPILER=cl CMAKE_CXX_COMPILER=cl -G Ninja,
cpack_generator: NSIS,
installer_name: Coollab-Launcher-Windows.exe,
installer_name: Coollab-Windows.exe,
}
- {
name: Linux,
os: ubuntu-latest,
cmake_configure_args: -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -G Ninja,
cpack_generator: STGZ,
installer_name: Coollab-Launcher-Linux.sh,
installer_name: Coollab-Linux.sh,
}
- {
name: MacOS,
os: macos-latest,
cmake_configure_args: -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -G Ninja -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib,
cpack_generator: Bundle,
installer_name: Coollab-Launcher-Mac.dmg,
installer_name: Coollab-Mac.dmg,
}

steps:
Expand Down
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(Coollab-Launcher)
project(Coollab)
add_executable(${PROJECT_NAME})

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
Expand Down Expand Up @@ -86,13 +86,13 @@ else()
endif()

# Installer Info
set(CPACK_PACKAGE_NAME "Coollab-Launcher")
set(CPACK_PACKAGE_NAME "Coollab")
set(CPACK_PACKAGE_VERSION "${COOLLAB_VERSION}")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Coollab-Launcher") # Don't put this in a Coollab parent folder. In NSIS this messes up the install and prevents our app to appear in "Apps and Features" to uninstall it for example.
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Coollab") # Don't put this in a Coollab parent folder. In NSIS this messes up the install and prevents our app to appear in "Apps and Features" to uninstall it for example.
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}${SEP}Lab${SEP}app-resources${SEP}installer_banner.bmp") # Seems like it has to be .bmp, at least for NSIS. NB: if there is any transparency in the image, NSIS won't be able to render it at all. Exporting a fully opaque .bmp from Paint.net works. 150x57 pixels is the ideal size to avoid uggly downscale artifacts.
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}${SEP}Lab${SEP}LICENSE.txt")
set(CPACK_PACKAGE_VENDOR "Coollab")
set(CPACK_PACKAGE_EXECUTABLES "Coollab-Launcher" "Coollab-Launcher") # Creates Start Menu shortcuts
set(CPACK_PACKAGE_EXECUTABLES "Coollab" "Coollab") # Creates Start Menu shortcuts
set(CPACK_PACKAGE_CONTACT "coollab.lib@gmail.com")

# TODO(Launcher) Quand on désinsrtalle le launchze, déqinstaller toutes les vrsions de coollab
Expand All @@ -106,7 +106,7 @@ else()
set(OS_NAME "Linux")
endif()

set(CPACK_PACKAGE_FILE_NAME "Coollab-Launcher-${OS_NAME}")
set(CPACK_PACKAGE_FILE_NAME "Coollab-${OS_NAME}")

# NSIS specifics
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
Expand All @@ -119,11 +119,11 @@ set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr HKCR 'CoollabFile' '' 'Coollab File'
WriteRegStr HKCR 'CoollabFile\\\\shell' '' 'open'
WriteRegStr HKCR 'CoollabFile\\\\DefaultIcon' \\\\
'' '$INSTDIR\\\\bin\\\\coollab-launcher.exe,0'
'' '$INSTDIR\\\\bin\\\\Coollab.exe,0'
WriteRegStr HKCR 'CoollabFile\\\\shell\\\\open\\\\command' \\\\
'' '$INSTDIR\\\\bin\\\\coollab-launcher.exe \\\"%1\\\"'
'' '$INSTDIR\\\\bin\\\\Coollab.exe \\\"%1\\\"'
WriteRegStr HKCR 'CoollabFile\\\\shell\\\\edit\\\\command' \\\\
'' '$INSTDIR\\\\bin\\\\coollab-launcher.exe \\\"%1\\\"'
'' '$INSTDIR\\\\bin\\\\Coollab.exe \\\"%1\\\"'
System::Call \\\\
'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'
")
Expand All @@ -133,7 +133,7 @@ set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
")

# MacOS Bundle specifics
set(CPACK_BUNDLE_NAME "Coollab-Launcher")
set(CPACK_BUNDLE_NAME "Coollab")
set(CPACK_BUNDLE_PLIST "${CMAKE_SOURCE_DIR}/Lab/app-resources/Info.plist")
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/Lab/app-resources/icon.icns")

Expand Down
2 changes: 1 addition & 1 deletion Lab
Submodule Lab updated 1 files
+1 −1 app-resources/Info.plist

0 comments on commit 1fa3e4f

Please sign in to comment.