mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
riot-desktop: 1.6.0 -> 1.6.1
https://github.com/vector-im/riot-desktop/releases/tag/v1.6.1 Also updated the package since `riot-desktop` has been moved to its own repository (`github.com/vector-im/riot-desktop`).
This commit is contained in:
parent
0db36eaab9
commit
307dfd90dc
|
@ -1,15 +1,111 @@
|
||||||
{
|
{
|
||||||
"name": "riot-web",
|
"name": "riot-desktop",
|
||||||
"productName": "Riot",
|
"productName": "Riot",
|
||||||
"main": "src/electron-main.js",
|
"main": "src/electron-main.js",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"description": "A feature-rich client for Matrix.org",
|
"description": "A feature-rich client for Matrix.org",
|
||||||
"author": "New Vector Ltd.",
|
"author": "New Vector Ltd.",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/vector-im/riot-desktop"
|
||||||
|
},
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"files": [],
|
||||||
|
"scripts": {
|
||||||
|
"mkdirs": "mkdirp packages deploys",
|
||||||
|
"fetch": "yarn run mkdirs && node scripts/fetch-package.js",
|
||||||
|
"start": "electron .",
|
||||||
|
"lint": "eslint src/ scripts/ hak/",
|
||||||
|
"build:native": "yarn run hak",
|
||||||
|
"build32": "electron-builder --ia32",
|
||||||
|
"build64": "electron-builder --x64",
|
||||||
|
"build": "electron-builder",
|
||||||
|
"docker:setup": "docker build -t riot-desktop-dockerbuild dockerbuild",
|
||||||
|
"docker:build:native": "scripts/in-docker.sh yarn run hak",
|
||||||
|
"docker:build": "scripts/in-docker.sh yarn run build",
|
||||||
|
"docker:install": "scripts/in-docker.sh yarn install",
|
||||||
|
"debrepo": "scripts/mkrepo.sh",
|
||||||
|
"clean": "rimraf webapp.asar dist packages deploys",
|
||||||
|
"hak": "node scripts/hak/index.js"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"auto-launch": "^5.0.1",
|
"auto-launch": "^5.0.1",
|
||||||
"electron-store": "^2.0.0",
|
"electron-store": "^2.0.0",
|
||||||
"electron-window-state": "^4.1.0",
|
"electron-window-state": "^4.1.0",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.3",
|
||||||
"png-to-ico": "^1.0.2"
|
"png-to-ico": "^1.0.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"asar": "^2.0.1",
|
||||||
|
"electron-builder": "^22.3.2",
|
||||||
|
"electron-builder-squirrel-windows": "^22.3.2",
|
||||||
|
"electron-devtools-installer": "^2.2.4",
|
||||||
|
"electron-notarize": "^0.2.0",
|
||||||
|
"eslint": "^5.8.0",
|
||||||
|
"eslint-config-google": "^0.7.1",
|
||||||
|
"eslint-plugin-babel": "^4.1.2",
|
||||||
|
"find-npm-prefix": "^1.0.2",
|
||||||
|
"fs-extra": "^8.1.0",
|
||||||
|
"glob": "^7.1.6",
|
||||||
|
"matrix-js-sdk": "6.1.0",
|
||||||
|
"mkdirp": "^1.0.3",
|
||||||
|
"needle": "^2.3.2",
|
||||||
|
"node-pre-gyp": "^0.14.0",
|
||||||
|
"npm": "^6.13.7",
|
||||||
|
"rimraf": "^3.0.2",
|
||||||
|
"semver": "^7.1.3",
|
||||||
|
"tar": "^6.0.1"
|
||||||
|
},
|
||||||
|
"hakDependencies": {
|
||||||
|
"matrix-seshat": "^1.3.3"
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"appId": "im.riot.app",
|
||||||
|
"electronVersion": "8.0.3",
|
||||||
|
"files": [
|
||||||
|
"package.json",
|
||||||
|
{
|
||||||
|
"from": ".hak/hakModules",
|
||||||
|
"to": "node_modules"
|
||||||
|
},
|
||||||
|
"src/**"
|
||||||
|
],
|
||||||
|
"extraResources": [
|
||||||
|
{
|
||||||
|
"from": "res/img",
|
||||||
|
"to": "img"
|
||||||
|
},
|
||||||
|
"webapp.asar"
|
||||||
|
],
|
||||||
|
"linux": {
|
||||||
|
"target": "deb",
|
||||||
|
"category": "Network;InstantMessaging;Chat",
|
||||||
|
"maintainer": "support@riot.im",
|
||||||
|
"desktop": {
|
||||||
|
"StartupWMClass": "riot"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mac": {
|
||||||
|
"category": "public.app-category.social-networking",
|
||||||
|
"darkModeSupport": true
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"target": {
|
||||||
|
"target": "squirrel"
|
||||||
|
},
|
||||||
|
"sign": "scripts/electron_winSign"
|
||||||
|
},
|
||||||
|
"directories": {
|
||||||
|
"output": "dist"
|
||||||
|
},
|
||||||
|
"afterSign": "scripts/electron_afterSign",
|
||||||
|
"protocols": [
|
||||||
|
{
|
||||||
|
"name": "riot",
|
||||||
|
"schemes": [
|
||||||
|
"riot"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -8,20 +8,18 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
executableName = "riot-desktop";
|
executableName = "riot-desktop";
|
||||||
version = "1.6.0";
|
version = "1.6.1";
|
||||||
riot-web-src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vector-im";
|
owner = "vector-im";
|
||||||
repo = "riot-web";
|
repo = "riot-desktop";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "16zm6l4c7vkfdlxh6gdw531k5r4v3mb0h66q41h94dvmj79dz2bj";
|
sha256 = "05mhapcgr1802c27428m8wkmw8qis1akv4m7z3m0l89wgv4kh6za";
|
||||||
};
|
};
|
||||||
electron = electron_7;
|
electron = electron_7;
|
||||||
|
|
||||||
in mkYarnPackage rec {
|
in mkYarnPackage rec {
|
||||||
name = "riot-desktop-${version}";
|
name = "riot-desktop-${version}";
|
||||||
inherit version;
|
inherit version src;
|
||||||
|
|
||||||
src = "${riot-web-src}/electron_app";
|
|
||||||
|
|
||||||
packageJSON = ./riot-desktop-package.json;
|
packageJSON = ./riot-desktop-package.json;
|
||||||
yarnNix = ./riot-desktop-yarndeps.nix;
|
yarnNix = ./riot-desktop-yarndeps.nix;
|
||||||
|
@ -32,8 +30,8 @@ in mkYarnPackage rec {
|
||||||
# resources
|
# resources
|
||||||
mkdir -p "$out/share/riot"
|
mkdir -p "$out/share/riot"
|
||||||
ln -s '${riot-web}' "$out/share/riot/webapp"
|
ln -s '${riot-web}' "$out/share/riot/webapp"
|
||||||
cp -r './deps/riot-web' "$out/share/riot/electron"
|
cp -r './deps/riot-desktop' "$out/share/riot/electron"
|
||||||
cp -r './deps/riot-web/img' "$out/share/riot"
|
cp -r './deps/riot-desktop/res/img' "$out/share/riot"
|
||||||
rm "$out/share/riot/electron/node_modules"
|
rm "$out/share/riot/electron/node_modules"
|
||||||
cp -r './node_modules' "$out/share/riot/electron"
|
cp -r './node_modules' "$out/share/riot/electron"
|
||||||
|
|
||||||
|
@ -80,7 +78,7 @@ in mkYarnPackage rec {
|
||||||
description = "A feature-rich client for Matrix.org";
|
description = "A feature-rich client for Matrix.org";
|
||||||
homepage = "https://about.riot.im/";
|
homepage = "https://about.riot.im/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ pacien worldofpeace ];
|
maintainers = with maintainers; [ pacien worldofpeace ma27 ];
|
||||||
inherit (electron.meta) platforms;
|
inherit (electron.meta) platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,9 @@ if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RIOT_WEB_SRC="https://raw.githubusercontent.com/vector-im/riot-web/$1"
|
RIOT_WEB_SRC="https://raw.githubusercontent.com/vector-im/riot-desktop/$1"
|
||||||
|
|
||||||
wget "$RIOT_WEB_SRC/electron_app/package.json" -O riot-desktop-package.json
|
wget "$RIOT_WEB_SRC/package.json" -O riot-desktop-package.json
|
||||||
wget "$RIOT_WEB_SRC/electron_app/yarn.lock" -O riot-desktop-yarndeps.lock
|
wget "$RIOT_WEB_SRC/yarn.lock" -O riot-desktop-yarndeps.lock
|
||||||
yarn2nix --lockfile=riot-desktop-yarndeps.lock > riot-desktop-yarndeps.nix
|
yarn2nix --lockfile=riot-desktop-yarndeps.lock > riot-desktop-yarndeps.nix
|
||||||
rm riot-desktop-yarndeps.lock
|
rm riot-desktop-yarndeps.lock
|
||||||
|
|
Loading…
Reference in a new issue