mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
[CI] Fixed CI Builds
This commit is contained in:
parent
03470269cb
commit
a296d8ab4a
@ -25,7 +25,6 @@ script:
|
||||
- git submodule update --init
|
||||
- lrelease ./Qv2ray.pro
|
||||
- mkdir build && cd ./build
|
||||
- if [ "$BADGE" = "linux" ]; then qtchooser -install qt511 /opt/qt511/bin/qmake; fi
|
||||
- if [ "$BADGE" = "linux" ]; then qmake "QV2RAY_LRELEASE=true" -qt=qt511 ../; fi
|
||||
- if [ "$BADGE" = "linux" ]; then /opt/qt511/bin/qmake ../ "QV2RAY_LRELEASE=true"; fi
|
||||
- if [ "$BADGE" = "osx" ]; then qmake "QV2RAY_LRELEASE=true" ../; fi
|
||||
- make
|
||||
|
@ -69,7 +69,7 @@ for(var, $$list($$files("*.ts", true))) {
|
||||
LOCALE_FILENAME = $$basename(var)
|
||||
!equals(LOCALE_FILENAME, "source.ts") {
|
||||
message(Found: $$LOCALE_FILENAME)
|
||||
LOCALES += , \\\"$${replace(LOCALE_FILENAME, ".ts", "")}\\\"
|
||||
LOCALES += \\\" $${replace(LOCALE_FILENAME, ".ts", "")}\\\"
|
||||
TRANSLATION_COUNT = $$num_add($$TRANSLATION_COUNT, 1)
|
||||
|
||||
# ONLY USED IN LRELEASE CONTEXT
|
||||
|
@ -18,7 +18,7 @@ PrefrencesWindow::PrefrencesWindow(QWidget *parent) : QDialog(parent),
|
||||
ui->setupUi(this);
|
||||
// We add locales
|
||||
ui->languageComboBox->clear();
|
||||
QStringList locales { "en-US" QV_INSERT_LOCALES };
|
||||
QStringList locales { QSTRING("en-US " QV_INSERT_LOCALES).split(" ", QString::SkipEmptyParts) };
|
||||
ui->languageComboBox->addItems(locales);
|
||||
//
|
||||
ui->qvVersion->setText(QV2RAY_VERSION_STRING);
|
||||
|
Loading…
Reference in New Issue
Block a user