Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : riot | name : riot | ||||
| version : 1.6.8 | version : 1.6.8 | ||||
| release : 65 | release : 66 | ||||
| homepage : https://riot.im/ | homepage : https://riot.im/ | ||||
| source : | source : | ||||
| - git|https://github.com/vector-im/riot-desktop.git : v1.6.8 | - git|https://github.com/vector-im/riot-desktop.git : v1.6.8 | ||||
| - git|https://github.com/vector-im/riot-web.git : v1.6.8 | - git|https://github.com/vector-im/riot-web.git : v1.6.8 | ||||
| license : Apache-2.0 | license : Apache-2.0 | ||||
| component : network.im | component : network.im | ||||
| networking : yes | networking : yes | ||||
| summary : Electron based Matrix client built using the Matrix React SDK | summary : Electron based Matrix client built using the Matrix React SDK | ||||
| Show All 19 Lines | |||||
| rundeps : | rundeps : | ||||
| - nodejs | - nodejs | ||||
| - libsecret | - libsecret | ||||
| - sqlcipher | - sqlcipher | ||||
| setup : | | setup : | | ||||
| # Copy riot-web to the build directory | # Copy riot-web to the build directory | ||||
| cp -a $sources/riot-web.git riot-web | cp -a $sources/riot-web.git riot-web | ||||
| # Remove update URL from config to disable auto-updates | |||||
| sed -i 's|"https://packages.riot.im/desktop/update/"|null|g' riot.im/release/config.json | |||||
| # Perform yarn install on both | # Perform yarn install on both | ||||
| yarn install | yarn install | ||||
| yarn --cwd riot-web install | yarn --cwd riot-web install | ||||
| build : | | build : | | ||||
| # Build riot-web | # Build riot-web | ||||
| yarn --cwd riot-web build | yarn --cwd riot-web build | ||||
| # Build riot-desktop | # Build riot-desktop | ||||
| yarn run build:native | yarn run build:native | ||||
| yarn run build | yarn run build | ||||
| install : | | install : | | ||||
| install -dm00644 $installdir/usr/bin | install -dm00644 $installdir/usr/bin | ||||
| install -dm00644 $installdir/usr/share/riot | install -dm00644 $installdir/usr/share/riot | ||||
| cp -Rv dist/linux-unpacked/* $installdir/usr/share/riot/ | cp -Rv dist/linux-unpacked/* $installdir/usr/share/riot/ | ||||
| cp -Rv riot-web/webapp $installdir/usr/share/riot/resources/ | cp -Rv riot-web/webapp $installdir/usr/share/riot/resources/ | ||||
| ln -sv ../share/riot/riot-desktop $installdir/usr/bin/riot-desktop | ln -sv ../share/riot/riot-desktop $installdir/usr/bin/riot-desktop | ||||
| # Install default configuration | |||||
| install -Dm00644 riot.im/release/config.json $installdir/usr/share/riot/resources/webapp/ | |||||
| # Install Icons | # Install Icons | ||||
| for icon_size in 16 24 48 64 96 128 256 512 | for icon_size in 16 24 48 64 96 128 256 512 | ||||
| do | do | ||||
| install -Dm00644 build/icons/${icon_size}x${icon_size}.png $installdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps/riot-desktop.png | install -Dm00644 build/icons/${icon_size}x${icon_size}.png $installdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps/riot-desktop.png | ||||
| done | done | ||||
| # Desktop File | # Desktop File | ||||
| install -Dm00644 $pkgfiles/riot.desktop $installdir/usr/share/applications/riot.desktop | install -Dm00644 $pkgfiles/riot.desktop $installdir/usr/share/applications/riot.desktop | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.