GithubHelp home page GithubHelp logo

stream-labs / a-files-updater Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 707 KB

Another updater tool

License: MIT License

CMake 1.94% C 37.06% C++ 54.17% JavaScript 6.21% Batchfile 0.37% Shell 0.24%

a-files-updater's Introduction

How to build

As easy as:

set PATH=%PATH%;C:\Program Files\7-Zip\

set DEPS_LOCAL_PATH=build/deps

ci\download_deps.bat
ci\localization_prepare_binaries.cmd

cmake -H"." -B"build" -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=RelWithDebInfo -A x64 -DCMAKE_DEPS_DIR=%CD%/build/deps -DCMAKE_INSTALL_PREFIX="%CD%/build/distribute/a-file-updater"

cmake --build build --target install --config RelWithDebInfo

This project depends on a few third party libraries.

  • OpenSSL 1.1.x
  • Boost 1.79.0 (system, filesystem, thread, regex, and headers for asio, beast, iostreams, core, util)
  • zlib 1.2.x

Prepackaged binaries of this libraries will be downloaded by ci\download_deps.bat and put inside build/deps

In order to build, set the above variables (see CMake find_package documentation for more flexible hints) and then run cmake however you want. A C++17 comformant compiler is required. Outside of that, as long as the dependencies are met and compatible, you can use whatever compiler you want.

Openssl build from source

  • clone https://github.com/openssl
  • install perl. download from http://strawberryperl.com/
  • in console check perl and setup VC env perl --version "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
  • configure to build 64 static lib perl Configure VC-WIN64A no-asm no-shared --prefix=C:\work\libs\openssl-lib-vvv-x64\
  • build and install nmake nmake test && nmake install
  • make an archive from install path

Localization

Boost.locale lib with a gettext format used for a localization. mo files included in exe by windows resources.

Commands

ci\localization_prepare_binaries.cmd - prepares mo files with current translation

ci\localization_set_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\localization_set_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
  • to test set LANG=fr_FR

a-files-updater's People

Contributors

computerquip-streamlabs avatar dependabot[bot] avatar eddygharbi avatar prsdamasceno avatar stevensoftware52 avatar summeroff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

a-files-updater's Issues

Remove FLTK dependency

FLTK is convenient but a bit clunky and inconvenient to build with. We should instead use win32 directly or even something like MFC since the updater is Windows-only.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.