mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge branch 'Nheko-Reborn:master' into ignore-command
This commit is contained in:
commit
a691f5de3c
5 changed files with 70 additions and 13 deletions
|
@ -45,7 +45,9 @@ codesign-windows:
|
||||||
stage: sign
|
stage: sign
|
||||||
image: win10-base
|
image: win10-base
|
||||||
tags: [libvirt,powershell]
|
tags: [libvirt,powershell]
|
||||||
resource_group: windows_signingA
|
rules:
|
||||||
|
- if : '$CI_PIPELINE_TRIGGERED == null && $CI_COMMIT_REF_PROTECTED == "true"'
|
||||||
|
resource_group: windows_signing
|
||||||
environment:
|
environment:
|
||||||
name: windows_signing
|
name: windows_signing
|
||||||
#variables:
|
#variables:
|
||||||
|
@ -53,16 +55,58 @@ codesign-windows:
|
||||||
script:
|
script:
|
||||||
- Get-ChildItem -Path Cert:CurrentUser\My
|
- Get-ChildItem -Path Cert:CurrentUser\My
|
||||||
- ./.ci/windows/sign.bat
|
- ./.ci/windows/sign.bat
|
||||||
|
- mkdir -p artifacts
|
||||||
|
- mv nheko.msix artifacts/nheko.msix
|
||||||
needs:
|
needs:
|
||||||
- job: build-windows
|
- job: build-windows
|
||||||
rules:
|
|
||||||
- if : '$CI_COMMIT_REF_PROTECTED == "true"'
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- nheko.msix
|
- artifacts/nheko.msix
|
||||||
name: nheko-${CI_COMMIT_SHORT_SHA}-windows
|
name: nheko-${CI_COMMIT_SHORT_SHA}-windows
|
||||||
expose_as: 'windows-app'
|
expose_as: 'windows-app'
|
||||||
|
|
||||||
|
upload-windows:
|
||||||
|
stage: deploy
|
||||||
|
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine:latest
|
||||||
|
tags: [docker]
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED == null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/'
|
||||||
|
variables:
|
||||||
|
PACKAGE_NAME: "windows"
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED == null && $CI_COMMIT_REF_PROTECTED == "true"'
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
PACKAGE_NAME: "windows-nightly"
|
||||||
|
before_script:
|
||||||
|
- apk add curl unzip
|
||||||
|
script:
|
||||||
|
- export VERSION=$(unzip -p artifacts/nheko.msix AppxManifest.xml | sed -n 's/.* Version="\([0-9.]*\)".*/\1/p')
|
||||||
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file artifacts/nheko.msix "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${VERSION}/nheko.msix"'
|
||||||
|
needs:
|
||||||
|
- job: codesign-windows
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine:latest
|
||||||
|
tags: [docker]
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED == null && $CI_COMMIT_REF_PROTECTED == "true"'
|
||||||
|
interruptible: true
|
||||||
|
before_script:
|
||||||
|
- apk add curl jq
|
||||||
|
script:
|
||||||
|
- export LATEST_WINDOWS_NIGHTLY=$(curl "https://nheko.im/api/v4/projects/2/packages?package_name=windows-nightly&order_by=version&sort=desc" | jq -r '.[0].version')
|
||||||
|
- sed "s/0.11.3.4/${LATEST_WINDOWS_NIGHTLY}/g" -i resources/NhekoNightly.appinstaller
|
||||||
|
- mkdir public
|
||||||
|
- mv resources/NhekoNightly.appinstaller public
|
||||||
|
needs:
|
||||||
|
- job: upload-windows
|
||||||
|
optional: true
|
||||||
|
artifacts: false
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
|
||||||
build-clazy:
|
build-clazy:
|
||||||
stage: build
|
stage: build
|
||||||
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine:latest
|
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine:latest
|
||||||
|
@ -375,6 +419,7 @@ github-release:
|
||||||
#- appimage-amd64 <- disabled because of missing packages
|
#- appimage-amd64 <- disabled because of missing packages
|
||||||
- build-flatpak
|
- build-flatpak
|
||||||
- codesign-macos
|
- codesign-macos
|
||||||
|
- codesign-windows
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add jq curl perl
|
- apk update && apk add jq curl perl
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -178,15 +178,17 @@ modules:
|
||||||
- buildsystem: meson
|
- buildsystem: meson
|
||||||
name: gstreamer
|
name: gstreamer
|
||||||
sources:
|
sources:
|
||||||
- commit: ecd471f5ea4645102b206a43d863f0f0fe7d04ec
|
- commit: 4d13eddc8b6d3f42ba44682ba42048acf170547f
|
||||||
tag: 1.22.3
|
tag: 1.22.7
|
||||||
type: git
|
type: git
|
||||||
url: https://gitlab.freedesktop.org/gstreamer/gstreamer.git
|
url: https://gitlab.freedesktop.org/gstreamer/gstreamer.git
|
||||||
config-opts:
|
config-opts:
|
||||||
- --auto-features=disabled
|
- --auto-features=disabled
|
||||||
- -Dgood=enabled
|
- -Dgood=enabled
|
||||||
- -Dgst-plugins-good:qt6=enabled
|
- -Dgst-plugins-good:qt6=enabled
|
||||||
#- -Dqt6=enabled <- not available on 1.22
|
- -Dgst-plugins-good:qt-egl=enabled
|
||||||
|
- -Dgst-plugins-good:qt-wayland=enabled
|
||||||
|
- -Dgst-plugins-good:qt-x11=enabled
|
||||||
- -Dbase=enabled
|
- -Dbase=enabled
|
||||||
- -Dgst-plugins-base:gl=enabled
|
- -Dgst-plugins-base:gl=enabled
|
||||||
- -Dgst-plugins-base:gl_platform=glx,egl
|
- -Dgst-plugins-base:gl_platform=glx,egl
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<Resource Language="de-de" />
|
<Resource Language="de-de" />
|
||||||
</Resources>
|
</Resources>
|
||||||
<Dependencies>
|
<Dependencies>
|
||||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14316.0" MaxVersionTested="10.0.15063.0" />
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.19044.0" MaxVersionTested="10.0.19045.0" />
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
<Capabilities>
|
<Capabilities>
|
||||||
<rescap:Capability Name="runFullTrust"/>
|
<rescap:Capability Name="runFullTrust"/>
|
||||||
|
|
10
resources/NhekoNightly.appinstaller
Normal file
10
resources/NhekoNightly.appinstaller
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<AppInstaller Uri="https://nheko-reborn.pages.nheko.im/nheko/NhekoNightly.appinstaller" Version="0.0.0.1" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
|
||||||
|
<MainPackage Name="im.nheko.Nheko" Version="0.11.3.4" Publisher="CN=Nicolas Werner, O=Nicolas Werner, L=Munich, S=Bavaria, C=DE" Uri="https://nheko.im/api/v4/projects/2/packages/generic/windows-nightly/0.11.3.4/nheko.msix" ProcessorArchitecture="x64" />
|
||||||
|
<UpdateSettings>
|
||||||
|
<!-- We can't set this to check only once a month, so just check once a week. If the user doesn't want that ping, they should install the msix directly. -->
|
||||||
|
<OnLaunch HoursBetweenUpdateChecks="168" ShowPrompt="true" />
|
||||||
|
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
|
||||||
|
</UpdateSettings>
|
||||||
|
</AppInstaller>
|
||||||
|
|
|
@ -464,11 +464,11 @@ InputBar::message(const QString &msg, MarkdownOverride useMarkdown, bool rainbow
|
||||||
text.body = replaceMatrixToMarkdownLink(msg.trimmed()).toStdString();
|
text.body = replaceMatrixToMarkdownLink(msg.trimmed()).toStdString();
|
||||||
|
|
||||||
// Don't send formatted_body, when we don't need to
|
// Don't send formatted_body, when we don't need to
|
||||||
// Specifically, if it includes no html tag and no newlines (which behave differently in
|
// Specifically, if it includes no html tag and no newlines or
|
||||||
// formatted bodies). Probably we forgot something, so this might need to expand at some
|
// backslashes (which behave differently in formatted bodies). Probably
|
||||||
// point.
|
// we forgot something, so this might need to expand at some point.
|
||||||
if (text.formatted_body.find('<') == std::string::npos &&
|
if (text.formatted_body.find('<') == std::string::npos &&
|
||||||
text.body.find('\n') == std::string::npos)
|
text.body.find('\n') == std::string::npos && text.body.find('\\') == std::string::npos)
|
||||||
text.formatted_body = "";
|
text.formatted_body = "";
|
||||||
else
|
else
|
||||||
text.format = "org.matrix.custom.html";
|
text.format = "org.matrix.custom.html";
|
||||||
|
@ -883,7 +883,7 @@ InputBar::command(const QString &command, QString args)
|
||||||
err->matrix_error.error);
|
err->matrix_error.error);
|
||||||
});
|
});
|
||||||
} else if (command == QLatin1String("shrug")) {
|
} else if (command == QLatin1String("shrug")) {
|
||||||
message("¯\\_(ツ)_/¯" + (args.isEmpty() ? QLatin1String("") : " " + args));
|
message("¯\\\\\\_(ツ)\\_/¯" + (args.isEmpty() ? QLatin1String("") : " " + args));
|
||||||
} else if (command == QLatin1String("fliptable")) {
|
} else if (command == QLatin1String("fliptable")) {
|
||||||
message(QStringLiteral("(╯°□°)╯︵ ┻━┻"));
|
message(QStringLiteral("(╯°□°)╯︵ ┻━┻"));
|
||||||
} else if (command == QLatin1String("unfliptable")) {
|
} else if (command == QLatin1String("unfliptable")) {
|
||||||
|
|
Loading…
Reference in a new issue