mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
Make sonarcloud happier (#1810)
This commit is contained in:
parent
6239aa5d9f
commit
13a0d0d3e2
@ -4,8 +4,8 @@ FROM rust:buster
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN curl --proto "=https" -L https://yarnpkg.com/latest.tar.gz | tar xvz && mv yarn-* /yarn && ln -s /yarn/bin/yarn /usr/bin/yarn
|
RUN curl --proto "=https" -L https://yarnpkg.com/latest.tar.gz | tar xvz && mv yarn-* /yarn && ln -s /yarn/bin/yarn /usr/bin/yarn
|
||||||
RUN apt-get -qq update && apt-get -qq dist-upgrade && \
|
RUN apt-get -qq update && apt-get -y -qq dist-upgrade && \
|
||||||
apt-get -qq install --no-install-recommends \
|
apt-get -y -qq install --no-install-recommends \
|
||||||
# tclsh is required for building SQLite as part of SQLCipher
|
# tclsh is required for building SQLite as part of SQLCipher
|
||||||
tcl \
|
tcl \
|
||||||
# libsecret-1-dev is required even for prebuild keytar
|
# libsecret-1-dev is required even for prebuild keytar
|
||||||
|
@ -2,7 +2,7 @@ FROM mcr.microsoft.com/playwright:v1.45.3-jammy
|
|||||||
|
|
||||||
WORKDIR /work/element-desktop
|
WORKDIR /work/element-desktop
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install xvfb
|
RUN apt-get update && apt-get -y install xvfb && apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
|
||||||
|
@ -97,15 +97,16 @@ export default class HakEnv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public makeGypEnv(): Record<string, string | undefined> {
|
public makeGypEnv(): Record<string, string | undefined> {
|
||||||
return Object.assign({}, process.env, {
|
return {
|
||||||
|
...process.env,
|
||||||
npm_config_arch: this.target.arch,
|
npm_config_arch: this.target.arch,
|
||||||
npm_config_target_arch: this.target.arch,
|
npm_config_target_arch: this.target.arch,
|
||||||
npm_config_disturl: "https://electronjs.org/headers",
|
npm_config_disturl: "https://electronjs.org/headers",
|
||||||
npm_config_runtime: this.runtime,
|
npm_config_runtime: this.runtime,
|
||||||
npm_config_target: this.runtimeVersion,
|
npm_config_target: this.runtimeVersion,
|
||||||
npm_config_build_from_source: true,
|
npm_config_build_from_source: "true",
|
||||||
npm_config_devdir: path.join(os.homedir(), ".electron-gyp"),
|
npm_config_devdir: path.join(os.homedir(), ".electron-gyp"),
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public wantsStaticSqlCipher(): boolean {
|
public wantsStaticSqlCipher(): boolean {
|
||||||
|
@ -79,7 +79,7 @@ async function pollForUpdates(): Promise<void> {
|
|||||||
|
|
||||||
export async function start(updateBaseUrl: string): Promise<void> {
|
export async function start(updateBaseUrl: string): Promise<void> {
|
||||||
if (!(await available(updateBaseUrl))) return;
|
if (!(await available(updateBaseUrl))) return;
|
||||||
if (updateBaseUrl.slice(-1) !== "/") {
|
if (!updateBaseUrl.endsWith("/")) {
|
||||||
updateBaseUrl = updateBaseUrl + "/";
|
updateBaseUrl = updateBaseUrl + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user