added childprocess to read clients running processes
Some checks failed
release / begin-notification (push) Has been cancelled
release / build-linux (push) Has been cancelled
release / build-msi-installer (push) Has been cancelled
release / build-mac-installer (push) Has been cancelled
release / upload-to-s3 (push) Has been cancelled
release / github-release (push) Has been cancelled
release / end-notification (push) Has been cancelled

This commit is contained in:
root 2024-09-20 12:36:58 -07:00
parent d1feecf036
commit 692584ad77
4 changed files with 28 additions and 12 deletions

View file

@ -3,10 +3,10 @@ SIGNER?="origin"
GPG=$(shell command which gpg || echo "N/A") GPG=$(shell command which gpg || echo "N/A")
DPKG_SIG=$(shell command which dpkg-sig || echo "N/A") DPKG_SIG=$(shell command which dpkg-sig || echo "N/A")
define sign_debian_package #define sign_debian_package
dpkg-sig -k ${GPG_KEY_ID} --sign ${SIGNER} $1 # dpkg-sig -k ${GPG_KEY_ID} --sign ${SIGNER} $1
dpkg-sig --verify $1 # dpkg-sig --verify $1
endef #endef
.PHONY: check-sign-linux-deb .PHONY: check-sign-linux-deb
check-sign-linux-deb: ##Check running environment to sign debian packages check-sign-linux-deb: ##Check running environment to sign debian packages
@ -42,7 +42,6 @@ package-linux-deb: npm-ci ## Generates linux packages under build/linux folder
mkdir -p artifacts mkdir -p artifacts
find ./release -name '*.deb' -exec cp "{}" artifacts/ \; find ./release -name '*.deb' -exec cp "{}" artifacts/ \;
.PHONY: sign .PHONY: sign
sign: sign-linux-deb ## Sign packages in artifacts directory sign: sign-linux-deb ## Sign packages in artifacts directory

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "mattermost-desktop", "name": "mattermost-desktop",
"version": "5.10.0-develop.1", "version": "6.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mattermost-desktop", "name": "mattermost-desktop",
"version": "5.10.0-develop.1", "version": "6.0.0",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {

View file

@ -16,6 +16,23 @@ async function removeAppUpdate(path) {
} }
} }
// Function to scan running processes
function scanProcesses(callback) {
exec('tasklist', (error, stdout, stderr) => {
if (error) {
console.error(`Error: ${error.message}`);
return;
}
if (stderr) {
console.error(`Error: ${stderr}`);
return;
}
const processes = stdout.split('\n').map(line => line.trim()).filter(line => line);
callback(processes);
});
}
exports.default = async function afterAllArtifactBuild(context) { exports.default = async function afterAllArtifactBuild(context) {
await context.artifactPaths.forEach(async (path) => { await context.artifactPaths.forEach(async (path) => {
if (path.match(windowsZipRegex)) { if (path.match(windowsZipRegex)) {

View file

@ -22,11 +22,11 @@ import type {BuildConfig} from 'types/config';
*/ */
const buildConfig: BuildConfig = { const buildConfig: BuildConfig = {
defaultServers: [ defaultServers: [
{ {
name: 'buds', name: 'buds',
url: 'https://chat.peanutsmediaserver.com/' url: 'https://chat.peanutsmediaserver.com/',
} },
], ],
helpLink: 'https://docs.mattermost.com/messaging/managing-desktop-app-servers.html', helpLink: 'https://docs.mattermost.com/messaging/managing-desktop-app-servers.html',
enableServerManagement: true, enableServerManagement: true,
enableAutoUpdater: true, enableAutoUpdater: true,