https://github.com/streamlabs/crash-handler
Crash handler
https://github.com/streamlabs/crash-handler
Last synced: 12 months ago
JSON representation
Crash handler
- Host: GitHub
- URL: https://github.com/streamlabs/crash-handler
- Owner: streamlabs
- License: gpl-2.0
- Created: 2018-07-09T21:14:37.000Z (almost 8 years ago)
- Default Branch: streamlabs
- Last Pushed: 2025-02-06T17:29:49.000Z (over 1 year ago)
- Last Synced: 2025-06-18T06:11:36.775Z (about 1 year ago)
- Language: C
- Size: 547 KB
- Stars: 3
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crash-handler
Crash handler
# To build
## On Windows
```
yarn install
set BIN_DEPENDENCIES=dependencies2019.0
ci\install-bin-deps.cmd
set AWS_SDK_VERSION="1.11.500"
ci\build-aws-sdk.cmd
ci\localization_prepare_binaries.cmd
set AWS_CRASH_UPLOAD_BUCKET_KEY=your_aws_bucket_key_for_memory_dumps
set INSTALL_PACKAGE_PATH="../desktop/node_modules/crash-handler"
cmake -B"build" -G"Visual Studio 17 2022" -A x64 -DDepsPath="%CD%\build\deps\%BIN_DEPENDENCIES%\win64" -DBOOST_ROOT="%CD%\build\deps\boost" -DCMAKE_INSTALL_PREFIX="%INSTALL_PACKAGE_PATH%"
cmake --build "build" --target install --config RelWithDebInfo
```
## On macOS
```
yarn install
./ci/build-osx.sh
```
By default, Apple Silicon Macs will build arm64 binaries. Apple Intel-based Macs will build x86_64 binaries. You can change the behavior using the CMAKE_OSX_ARCHITECTURES environment variable.
* `export CMAKE_OSX_ARCHITECTURES="arm64"` - builds arm64 binaries
* `export CMAKE_OSX_ARCHITECTURES="x86_64"` - builds x86_64 binaries
* `export CMAKE_OSX_ARCHITECTURES="arm64;x86_64"` - builds universal binaries
Also, you can `export CMAKE_APPLE_SILICON_PROCESSOR="x86_64"` to make an Apple Silicon Mac build x86_64 binaries.
## Localization
Boost.locale lib with a gettext format used for a localization(on windows).
mo files included in exe by windows resources.
### Commands
`ci\localization_prepare_binaries.cmd` - prepares mo files with current translation
`ci\generate_new_translations.cmd` - update po files with current strings from source code
### Add new language
* Add new lang code into `ci\localization_get_tools.cmd` and run `ci\generate_new_translations.cmd`
* Translate lines inside `locale\NEW_LANG\LC_MESSAGES\messages.po`
* Add new mo file to `resources\slobs-updater.rc`
* Add it to `locales_resources` map inside `get_messages_callback()`
* Prepare binaries `ci\localization_prepare_binaries.cmd`
* Make a new build
* Do not forget to commit `locale\NEW_LANG\LC_MESSAGES\messages.po`