Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:simonizor:discord
discord-canary-installer
discord-canary-installer.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File discord-canary-installer.spec of Package discord-canary-installer
# # spec file for package discord-canary-installer # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: discord-canary-installer Version: 0.0.111 Release: 0 Summary: Downloads and installs Discord Canary with non stripped libffmpeg.so License: SUSE-NonFree Group: Amusements/Games/Other Url: https://discordapp.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: wget ExclusiveArch: x86_64 Provides: discord-canary Conflicts: discord-canary Requires: wget libgtk-2_0-0 libnotify-tools libasound2 gconf2 mozilla-nss dbus-1-glib libXtst6 libX11-6 libstdc++6 libc++1 libatomic1 %description Downloads and installs Discord Canary with non stripped libffmpeg.so Approximate install size: 180M Discord Canary is a voice and text chat for gamers. The Text chat supports inline images and videos. Voice chat includes a jitter buffer, automatic gain control, noise suppression, echo cancellation. Server-to-client communications are encrypted. %prep %build %install mkdir -p %{buildroot}/opt/DiscordCanary/locales mkdir -p %{buildroot}/opt/DiscordCanary/resources/bootstrap mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps %post if wget --spider "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz" > /dev/null 2>&1; then echo "Installing Discord Canary to '/opt/DiscordCanary'..." # download Discord Canary tar wget -nv "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz" -O /tmp/discord-canary-install.tar.gz || \ { echo "Failed to download Discord Canary "; exit 2; } if pgrep DiscordCanary ; then pkill DiscordCanary sleep 1 pkill -9 DiscordCanary fi tar xf /tmp/discord-canary-install.tar.gz --overwrite -C /opt || { echo "Failed to extract Discord Canary tar"; exit 2; } rm -f /tmp/discord-canary-install.tar.gz # fix Exec line in .desktop file sed -i 's%^Exec=.*%Exec=discord-canary%g' /opt/DiscordCanary/discord-canary.desktop || { echo "Failed to fix discord-canary.desktop"; exit 2; } # move .desktop file to /usr/share/applications/discord-canary.desktop mv /opt/DiscordCanary/discord-canary.desktop %{_datadir}/applications/discord-canary.desktop || { echo "Failed to move discord-canary.desktop"; exit 2; } # copy icon to /usr/share/icons/hicolor/256x256/apps/discord-canary.png cp /opt/DiscordCanary/discord.png %{_datadir}/icons/hicolor/256x256/apps/discord-canary.png || { echo "Failed to copy discord-canary.png"; exit 2; } # create symlink for /opt/DiscordCanary/DiscordCanary binary to /usr/bin/discord-canary ln -sf /opt/DiscordCanary/DiscordCanary %{_bindir}/discord-canary || { echo "Failed to create symlink to %{_bindir}/discord-canary"; exit 2; } chmod +x %{_bindir}/discord-canary || { echo "Failed to make discord-canary executable"; exit 2; } # run included postinst.sh chmod +x /opt/DiscordCanary/postinst.sh || { echo "Failed to make postinst.sh executable"; exit 2; } /opt/DiscordCanary/postinst.sh || { echo "Failed to run postinst.sh"; exit 2; } echo "Discord Canary installed to '/opt/DiscordCanary'" else echo "Could not connect to download server" exit 0 fi %files %dir /opt/DiscordCanary %dir /opt/DiscordCanary/locales %dir /opt/DiscordCanary/resources %dir /opt/DiscordCanary/resources/bootstrap %dir %{_datadir}/applications %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/256x256 %dir %{_datadir}/icons/hicolor/256x256/apps %ghost /opt/DiscordCanary/blink_image_resources_200_percent.pak %ghost /opt/DiscordCanary/content_resources_200_percent.pak %ghost /opt/DiscordCanary/content_shell.pak %ghost /opt/DiscordCanary/DiscordCanary %ghost /opt/DiscordCanary/discord.png %ghost /opt/DiscordCanary/icudtl.dat %ghost /opt/DiscordCanary/libffmpeg.so %ghost /opt/DiscordCanary/libnode.so %ghost /opt/DiscordCanary/natives_blob.bin %ghost /opt/DiscordCanary/pdf_viewer_resources.pak %ghost /opt/DiscordCanary/postinst.sh %ghost /opt/DiscordCanary/snapshot_blob.bin %ghost /opt/DiscordCanary/ui_resources_200_percent.pak %ghost /opt/DiscordCanary/views_resources_200_percent.pak %ghost /opt/DiscordCanary/locales/am.pak %ghost /opt/DiscordCanary/locales/ar.pak %ghost /opt/DiscordCanary/locales/bg.pak %ghost /opt/DiscordCanary/locales/bn.pak %ghost /opt/DiscordCanary/locales/ca.pak %ghost /opt/DiscordCanary/locales/cs.pak %ghost /opt/DiscordCanary/locales/da.pak %ghost /opt/DiscordCanary/locales/de.pak %ghost /opt/DiscordCanary/locales/el.pak %ghost /opt/DiscordCanary/locales/en-GB.pak %ghost /opt/DiscordCanary/locales/en-US.pak %ghost /opt/DiscordCanary/locales/es-419.pak %ghost /opt/DiscordCanary/locales/es.pak %ghost /opt/DiscordCanary/locales/et.pak %ghost /opt/DiscordCanary/locales/fake-bidi.pak %ghost /opt/DiscordCanary/locales/fa.pak %ghost /opt/DiscordCanary/locales/fil.pak %ghost /opt/DiscordCanary/locales/fi.pak %ghost /opt/DiscordCanary/locales/fr.pak %ghost /opt/DiscordCanary/locales/gu.pak %ghost /opt/DiscordCanary/locales/he.pak %ghost /opt/DiscordCanary/locales/hi.pak %ghost /opt/DiscordCanary/locales/hr.pak %ghost /opt/DiscordCanary/locales/hu.pak %ghost /opt/DiscordCanary/locales/id.pak %ghost /opt/DiscordCanary/locales/it.pak %ghost /opt/DiscordCanary/locales/ja.pak %ghost /opt/DiscordCanary/locales/kn.pak %ghost /opt/DiscordCanary/locales/ko.pak %ghost /opt/DiscordCanary/locales/lt.pak %ghost /opt/DiscordCanary/locales/lv.pak %ghost /opt/DiscordCanary/locales/ml.pak %ghost /opt/DiscordCanary/locales/mr.pak %ghost /opt/DiscordCanary/locales/ms.pak %ghost /opt/DiscordCanary/locales/nb.pak %ghost /opt/DiscordCanary/locales/nl.pak %ghost /opt/DiscordCanary/locales/pl.pak %ghost /opt/DiscordCanary/locales/pt-BR.pak %ghost /opt/DiscordCanary/locales/pt-PT.pak %ghost /opt/DiscordCanary/locales/ro.pak %ghost /opt/DiscordCanary/locales/ru.pak %ghost /opt/DiscordCanary/locales/sk.pak %ghost /opt/DiscordCanary/locales/sl.pak %ghost /opt/DiscordCanary/locales/sr.pak %ghost /opt/DiscordCanary/locales/sv.pak %ghost /opt/DiscordCanary/locales/sw.pak %ghost /opt/DiscordCanary/locales/ta.pak %ghost /opt/DiscordCanary/locales/te.pak %ghost /opt/DiscordCanary/locales/th.pak %ghost /opt/DiscordCanary/locales/tr.pak %ghost /opt/DiscordCanary/locales/uk.pak %ghost /opt/DiscordCanary/locales/vi.pak %ghost /opt/DiscordCanary/locales/zh-CN.pak %ghost /opt/DiscordCanary/locales/zh-TW.pak %ghost /opt/DiscordCanary/resources/app.asar %ghost /opt/DiscordCanary/resources/electron.asar %ghost /opt/DiscordCanary/resources/bootstrap/discord_desktop_core.zip %ghost /opt/DiscordCanary/resources/bootstrap/discord_erlpack.zip %ghost /opt/DiscordCanary/resources/bootstrap/discord_game_utils.zip %ghost /opt/DiscordCanary/resources/bootstrap/discord_rpc.zip %ghost /opt/DiscordCanary/resources/bootstrap/discord_spellcheck.zip %ghost /opt/DiscordCanary/resources/bootstrap/discord_utils.zip %ghost /opt/DiscordCanary/resources/bootstrap/discord_voice.zip %ghost /opt/DiscordCanary/resources/bootstrap/manifest.json %ghost %{_datadir}/applications/discord-canary.desktop %ghost %{_datadir}/icons/hicolor/256x256/apps/discord-canary.png %ghost %{_bindir}/discord-canary %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor