Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Sep 23, 2024
1 parent ab605bc commit 8e77ea5
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ jobs:
LUPDATE_ARGS: ""
POSTPROCESS_ARGS: ${{ env.DO_PLACEHOLDER_TRANSLATIONS == 'true' && '--generate-placeholder-translations' || '' }}
run: |
bash ./build/ci/translation/run_lupdate.sh
#bash ./build/ci/translation/run_lupdate.sh
- name: Update .ts files
if: env.DO_UPDATE_TS == 'true'
run: |
bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s linux
bash ./build/ci/translation/tx_pull.sh
#bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s linux
#bash ./build/ci/translation/tx_pull.sh
- name: Build
run: |
T_ID=${{ secrets.TELEMETRY_TRACK_ID }}; if [ -z "$T_ID" ]; then T_ID="''"; fi
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ jobs:
restore-keys: ${{github.workflow}}-ccache-
- name: Setup ccache
run: |
#sudo rm -rf "/Applications/Visual Studio.app"
#sudo rm -rf "/Applications/Visual Studio 2019.app"
#sudo rm -rf "/Users/runner/Library/Android/sdk"
brew install ccache
bash ./build/ci/tools/setup_ccache_config.sh
Expand All @@ -176,12 +179,12 @@ jobs:
LUPDATE_ARGS: ""
POSTPROCESS_ARGS: "--warn-only ${{ env.DO_PLACEHOLDER_TRANSLATIONS == 'true' && '--generate-placeholder-translations' || '' }}"
run: |
bash ./build/ci/translation/run_lupdate.sh
#bash ./build/ci/translation/run_lupdate.sh
- name: Update .ts files
if: env.DO_UPDATE_TS == 'true'
run: |
bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s macos
bash ./build/ci/translation/tx_pull.sh
#bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s macos
#bash ./build/ci/translation/tx_pull.sh
- name: Build
run: |
#C_URL=${SENTRY_URL}; if [ -z "$C_URL" ]; then C_URL="''"; fi
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,21 @@ jobs:
- name: Make environment file
shell: bash
run: |
bash ./build/ci/windows/make_environment.sh
#bash ./build/ci/windows/make_environment.sh
- name: Generate _en.ts files
shell: bash
env:
LUPDATE_ARGS: ""
POSTPROCESS_ARGS: "--warn-only ${{ env.DO_PLACEHOLDER_TRANSLATIONS == 'true' && '--generate-placeholder-translations' || '' }}"
POSTPROCESS_LAUNCHER: "python3 -X utf8"
run: |
bash ./build/ci/translation/run_lupdate.sh
#bash ./build/ci/translation/run_lupdate.sh
- name: Update .ts files
if: env.DO_UPDATE_TS == 'true'
shell: bash
run: |
bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s windows
bash ./build/ci/translation/tx_pull.sh
#bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s windows
#bash ./build/ci/translation/tx_pull.sh
- name: Build
shell: cmd
run: |
Expand All @@ -188,7 +188,7 @@ jobs:
IF ${{ secrets.WIN_SIGN_CERTIFICATE_ENCRYPT_SECRET != 0 }} == true ( SET S_S=${{ secrets.WIN_SIGN_CERTIFICATE_ENCRYPT_SECRET }} ) ELSE ( SET S_S="''" )
IF ${{ secrets.WIN_SIGN_CERTIFICATE_PASSWORD != 0 }} == true ( SET S_P=${{ secrets.WIN_SIGN_CERTIFICATE_PASSWORD }} ) ELSE ( SET S_P="''" )
IF ${{ env.BUILD_MODE }} == stable ( SET GUID=${{ secrets.WIN_MSI_STABLE_GUID }} ) ELSE ( SET GUID=${{ secrets.WIN_MSI_TESTING_GUID }} )
build\ci\windows\package.bat --signsecret %S_S% --signpass %S_P% --guid %GUID
build\ci\windows\package.bat --signsecret %S_S% --signpass %S_P% --guid %GUID%
- name: Checksum
run: |
bash ./build/ci/tools/checksum.sh
Expand Down Expand Up @@ -321,21 +321,21 @@ jobs:
- name: Make environment file
shell: bash
run: |
bash ./build/ci/windows/make_environment.sh
#bash ./build/ci/windows/make_environment.sh
- name: Generate _en.ts files
shell: bash
env:
LUPDATE_ARGS: ""
POSTPROCESS_ARGS: "--warn-only ${{ env.DO_PLACEHOLDER_TRANSLATIONS == 'true' && '--generate-placeholder-translations' || '' }}"
POSTPROCESS_LAUNCHER: "python3 -X utf8"
run: |
bash ./build/ci/translation/run_lupdate.sh
#bash ./build/ci/translation/run_lupdate.sh
- name: Update .ts files
if: env.DO_UPDATE_TS == 'true'
shell: bash
run: |
bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s windows
bash ./build/ci/translation/tx_pull.sh
#bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s windows
#bash ./build/ci/translation/tx_pull.sh
- name: Build
shell: cmd
run: |
Expand Down Expand Up @@ -451,21 +451,21 @@ jobs:
- name: Make environment file
shell: bash
run: |
bash ./build/ci/windows/make_environment.sh
#bash ./build/ci/windows/make_environment.sh
- name: Generate _en.ts files
shell: bash
env:
LUPDATE_ARGS: ""
POSTPROCESS_ARGS: "--warn-only ${{ env.DO_PLACEHOLDER_TRANSLATIONS == 'true' && '--generate-placeholder-translations' || '' }}"
POSTPROCESS_LAUNCHER: "python3 -X utf8"
run: |
bash ./build/ci/translation/run_lupdate.sh
#bash ./build/ci/translation/run_lupdate.sh
- name: Update .ts files
if: env.DO_UPDATE_TS == 'true'
shell: bash
run: |
bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s windows
bash ./build/ci/translation/tx_pull.sh
#bash ./build/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s windows
#bash ./build/ci/translation/tx_pull.sh
- name: Build
shell: cmd
run: |
Expand Down
34 changes: 34 additions & 0 deletions build/ci/windows/make_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-only
# MuseScore-Studio-CLA-applies
#
# MuseScore Studio
# Music Composition & Notation
#
# Copyright (C) 2021 MuseScore Limited
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

BUILD_TOOLS=$HOME/build_tools
ENV_FILE=$BUILD_TOOLS/environment.sh

mkdir -p $BUILD_TOOLS
rm -f $ENV_FILE

QT_DIR="/c/Qt/6.2.4"

echo export PATH="${QT_DIR}/msvc2019_64/bin:\${PATH}" >> ${ENV_FILE}

chmod +x "$ENV_FILE"

cat $ENV_FILE

0 comments on commit 8e77ea5

Please sign in to comment.