docker.sh 696 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash -e
  2. # SPDX-FileCopyrightText: 2021 yuzu Emulator Project
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. # Setup RC file for tx
  5. cat << EOF > ~/.transifexrc
  6. [https://www.transifex.com]
  7. hostname = https://www.transifex.com
  8. username = api
  9. password = $TRANSIFEX_API_TOKEN
  10. EOF
  11. set -x
  12. echo -e "\e[1m\e[33mBuild tools information:\e[0m"
  13. cmake --version
  14. gcc -v
  15. tx --version
  16. # vcpkg needs these: curl zip unzip tar, have tar
  17. apt-get install -y curl zip unzip
  18. mkdir build && cd build
  19. cmake .. -DENABLE_QT_TRANSLATION=ON -DGENERATE_QT_TRANSLATION=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_SDL2=OFF -DYUZU_TESTS=OFF -DYUZU_USE_BUNDLED_VCPKG=ON
  20. make translation
  21. cd ..
  22. cd dist/languages
  23. tx push -s