diff --git a/control b/control new file mode 100644 index 00000000..eb83fe7a --- /dev/null +++ b/control @@ -0,0 +1,10 @@ +Package: Spotube +Version: 0.0.1 +Section: sound +Priority: optional +Architecture: all +Essential: no +Installed-Size: 44000 +Maintainer: KR Tirtho +Description: A music streaming app combining the power of Spotify & Youtube +Homepage: https://github.com/KRTirtho/spotube diff --git a/deb-config.json b/deb-config.json new file mode 100644 index 00000000..350df166 --- /dev/null +++ b/deb-config.json @@ -0,0 +1,4 @@ +{ + "appName": "name", + "version": "0.1" +} \ No newline at end of file diff --git a/deb-struct/DEBIAN/control b/deb-struct/DEBIAN/control new file mode 100644 index 00000000..eb83fe7a --- /dev/null +++ b/deb-struct/DEBIAN/control @@ -0,0 +1,10 @@ +Package: Spotube +Version: 0.0.1 +Section: sound +Priority: optional +Architecture: all +Essential: no +Installed-Size: 44000 +Maintainer: KR Tirtho +Description: A music streaming app combining the power of Spotify & Youtube +Homepage: https://github.com/KRTirtho/spotube diff --git a/deb-struct/usr/bin/spotube b/deb-struct/usr/bin/spotube new file mode 120000 index 00000000..6ceef7a3 --- /dev/null +++ b/deb-struct/usr/bin/spotube @@ -0,0 +1 @@ +/usr/lib/spotube/qode \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/.DirIcon b/deb-struct/usr/lib/spotube/.DirIcon new file mode 120000 index 00000000..d436e223 --- /dev/null +++ b/deb-struct/usr/lib/spotube/.DirIcon @@ -0,0 +1 @@ +spotube.png \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/AppRun b/deb-struct/usr/lib/spotube/AppRun new file mode 120000 index 00000000..fa822e3f --- /dev/null +++ b/deb-struct/usr/lib/spotube/AppRun @@ -0,0 +1 @@ +qode \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/Spotube Icon.svg b/deb-struct/usr/lib/spotube/Spotube Icon.svg new file mode 100644 index 00000000..954565fc --- /dev/null +++ b/deb-struct/usr/lib/spotube/Spotube Icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/Spotube-x86_64.AppImage b/deb-struct/usr/lib/spotube/Spotube-x86_64.AppImage new file mode 100755 index 00000000..6d089064 Binary files /dev/null and b/deb-struct/usr/lib/spotube/Spotube-x86_64.AppImage differ diff --git a/deb-struct/usr/lib/spotube/assets/angle-left-solid.svg b/deb-struct/usr/lib/spotube/assets/angle-left-solid.svg new file mode 100644 index 00000000..39198fc6 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/angle-left-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/backward-solid.svg b/deb-struct/usr/lib/spotube/assets/backward-solid.svg new file mode 100644 index 00000000..e199fd0e --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/backward-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/demo.png b/deb-struct/usr/lib/spotube/assets/demo.png new file mode 100644 index 00000000..b0f23773 Binary files /dev/null and b/deb-struct/usr/lib/spotube/assets/demo.png differ diff --git a/deb-struct/usr/lib/spotube/assets/forward-solid.svg b/deb-struct/usr/lib/spotube/assets/forward-solid.svg new file mode 100644 index 00000000..f8cb3912 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/forward-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/heart-regular.svg b/deb-struct/usr/lib/spotube/assets/heart-regular.svg new file mode 100644 index 00000000..d6dabd0d --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/heart-regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/heart-solid.svg b/deb-struct/usr/lib/spotube/assets/heart-solid.svg new file mode 100644 index 00000000..b6b04b69 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/heart-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/loading-spinner.gif b/deb-struct/usr/lib/spotube/assets/loading-spinner.gif new file mode 100644 index 00000000..fb9c052f Binary files /dev/null and b/deb-struct/usr/lib/spotube/assets/loading-spinner.gif differ diff --git a/deploy/linux/spotube/spotube.jpg b/deb-struct/usr/lib/spotube/assets/nodegui.jpg similarity index 100% rename from deploy/linux/spotube/spotube.jpg rename to deb-struct/usr/lib/spotube/assets/nodegui.jpg diff --git a/deb-struct/usr/lib/spotube/assets/pause-solid.svg b/deb-struct/usr/lib/spotube/assets/pause-solid.svg new file mode 100644 index 00000000..7cf24971 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/pause-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/play-solid.svg b/deb-struct/usr/lib/spotube/assets/play-solid.svg new file mode 100644 index 00000000..bcd81f7a --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/play-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/random-solid.svg b/deb-struct/usr/lib/spotube/assets/random-solid.svg new file mode 100644 index 00000000..92d38f14 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/random-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/rickroll.jpg b/deb-struct/usr/lib/spotube/assets/rickroll.jpg new file mode 100644 index 00000000..e3e3a586 Binary files /dev/null and b/deb-struct/usr/lib/spotube/assets/rickroll.jpg differ diff --git a/deb-struct/usr/lib/spotube/assets/search-solid.svg b/deb-struct/usr/lib/spotube/assets/search-solid.svg new file mode 100644 index 00000000..f41bbdd4 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/search-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/assets/stop-solid.svg b/deb-struct/usr/lib/spotube/assets/stop-solid.svg new file mode 100644 index 00000000..3d82c324 --- /dev/null +++ b/deb-struct/usr/lib/spotube/assets/stop-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/deb-struct/usr/lib/spotube/default.png b/deb-struct/usr/lib/spotube/default.png new file mode 100644 index 00000000..e69de29b diff --git a/deb-struct/usr/lib/spotube/doc/libdbus-1-3/copyright b/deb-struct/usr/lib/spotube/doc/libdbus-1-3/copyright new file mode 100644 index 00000000..b286369e --- /dev/null +++ b/deb-struct/usr/lib/spotube/doc/libdbus-1-3/copyright @@ -0,0 +1,417 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: D-Bus +Source: https://dbus.freedesktop.org/releases/dbus/ +Comment: + The effective license of the majority of the package, including the + shared library, is "GPL-2+ or AFL-2.1". Certain utilities are + "GPL-2+" only. + +Files: * +Copyright: + © 1994 A.M. Kuchling + © 2002-2008 Red Hat, Inc + © 2002-2003 CodeFactory AB + © 2002 Michael Meeks + © 2004 Imendio HB + © 2005 Lennart Poettering + © 2005 Novell, Inc + © 2005 David A. Wheeler + © 2006-2013 Ralf Habacker + © 2006 Mandriva + © 2006 Peter Kümmel + © 2006 Christian Ehrlicher + © 2006 Thiago Macieira + © 2008 Colin Walters + © 2009 Klaralvdalens Datakonsult AB, a KDAB Group company + © 2011-2012 Nokia Corporation + © 2012-2018 Collabora Ltd. + © 2013 Intel Corporation + © 2017 Laurent Bigonville + © 2018 KPIT Technologies Ltd. + © 2018 Manish Narang + "modified code from libassuan, (C) FSF" +License: GPL-2+ or AFL-2.1 + +Files: + doc/dbus-test-tool.1.xml.in + tools/dbus-cleanup-sockets.c + tools/dbus-monitor.c + tools/dbus-send.c + tools/dbus-print-message.? + tools/dbus-uuidgen.c + tools/test-tool.c + tools/tool-common.? +Copyright: + © 2002 Michael Meeks + © 2003-2006 Red Hat, Inc. + © 2003 Philip Blundell + © 2011 Nokia Corporation + © 2014-2017 Collabora Ltd. +License: GPL-2+ + +Files: + dbus/dbus-server-launchd.? + doc/dbus-update-activation-environment.1.xml.in + test/test-apparmor-activation.sh + test/corrupt.c + test/data/dbus-installed-tests.aaprofile.in + test/dbus-daemon-eavesdrop.c + test/dbus-daemon.c + test/fdpass.c + test/internals/printf.c + test/internals/refs.c + test/internals/syslog.c + test/loopback.c + test/manual-authz.c + test/marshal.c + test/monitor.c + test/relay.c + test/sd-activation.c + test/syntax.c + test/uid-permissions.c + test/test-utils-glib.? + tools/dbus-update-activation-environment.c +Copyright: + © 2007 Tanner Lovelace + © 2008-2009 Benjamin Reed + © 2008 Colin Walters + © 2009 Jonas Bähr + © 2008-2012 Nokia Corporation + © 2008-2018 Collabora Ltd + © 2013 Intel Corporation + © 2017 Shin-ichi MORITA +License: Expat + +Files: tools/strto*ll.c +Copyright: © 1991-1993 The Regents of the University of California +License: BSD-3-clause + +Files: + cmake/modules/FindGLib2.cmake + cmake/modules/FindGObject.cmake +Copyright: + © 2008 Laurent Montel + © 2011 Raphael Kubo da Costa + © 2013 Ralf Habacker +License: BSD-3-clause-generic +Comment: + BSD-3-clause with more generic terms for the authors and copyright holders + +Files: + dbus/dbus-hash.c +Copyright: + © 1991-1993 The Regents of the University of California + © 1994 Sun Microsystems, Inc + © 2002 Red Hat, Inc. +License: GPL-2+ or AFL-2.1, and Tcl-BSDish +Comment: + The Tcl license appears to be compatible with either the GPL-2+ + or the AFL-2.1, so the effective license is "GPL-2+ or AFL-2.1". + +Files: dbus/versioninfo.rc.in +Copyright: © 2005 g10 Code GmbH +License: g10-permissive + This file is free software; as a special exception the author gives + unlimited permission to copy and/or distribute it, with or without + modifications, as long as this notice is preserved. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY, to the extent permitted by law; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +Comment: + On Debian systems, see /usr/share/common-licenses/GPL-2 for the full + text of the GPL version 2. + +License: Expat + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +License: Tcl-BSDish + This software is copyrighted by the Regents of the University of + California, Sun Microsystems, Inc., Scriptics Corporation, and + other parties. The following terms apply to all files associated + with the software unless explicitly disclaimed in individual files. + . + The authors hereby grant permission to use, copy, modify, + distribute, and license this software and its documentation for any + purpose, provided that existing copyright notices are retained in + all copies and that this notice is included verbatim in any + distributions. No written agreement, license, or royalty fee is + required for any of the authorized uses. Modifications to this + software may be copyrighted by their authors and need not follow + the licensing terms described here, provided that the new terms are + clearly indicated on the first page of each file where they apply. + . + IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + OF THE POSSIBILITY OF SUCH DAMAGE. + . + THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + . + GOVERNMENT USE: If you are acquiring this software on behalf of the + U.S. government, the Government shall have only "Restricted Rights" + in the software and related documentation as defined in the Federal + Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + are acquiring the software on behalf of the Department of Defense, + the software shall be classified as "Commercial Computer Software" + and the Government shall have only "Restricted Rights" as defined + in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + foregoing, the authors grant the U.S. Government and others acting + in its behalf permission to use and distribute the software in + accordance with the terms specified in this license. + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 4. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: BSD-3-clause-generic + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: AFL-2.1 + The Academic Free License + v. 2.1 + . + This Academic Free License (the "License") applies to any original + work of authorship (the "Original Work") whose owner (the "Licensor") + has placed the following notice immediately following the copyright + notice for the Original Work: + . + Licensed under the Academic Free License version 2.1 + . + 1) Grant of Copyright License. Licensor hereby grants You a + world-wide, royalty-free, non-exclusive, perpetual, sublicenseable + license to do the following: + . + a) to reproduce the Original Work in copies; + . + b) to prepare derivative works ("Derivative Works") based upon the + Original Work; + . + c) to distribute copies of the Original Work and Derivative Works to + the public; + . + d) to perform the Original Work publicly; and + . + e) to display the Original Work publicly. + . + 2) Grant of Patent License. Licensor hereby grants You a world-wide, + royalty-free, non-exclusive, perpetual, sublicenseable license, under + patent claims owned or controlled by the Licensor that are embodied in + the Original Work as furnished by the Licensor, to make, use, sell and + offer for sale the Original Work and Derivative Works. + . + 3) Grant of Source Code License. The term "Source Code" means the + preferred form of the Original Work for making modifications to it and + all available documentation describing how to modify the Original + Work. Licensor hereby agrees to provide a machine-readable copy of the + Source Code of the Original Work along with each copy of the Original + Work that Licensor distributes. Licensor reserves the right to satisfy + this obligation by placing a machine-readable copy of the Source Code + in an information repository reasonably calculated to permit + inexpensive and convenient access by You for as long as Licensor + continues to distribute the Original Work, and by publishing the + address of that information repository in a notice immediately + following the copyright notice that applies to the Original Work. + . + 4) Exclusions From License Grant. Neither the names of Licensor, nor + the names of any contributors to the Original Work, nor any of their + trademarks or service marks, may be used to endorse or promote + products derived from this Original Work without express prior written + permission of the Licensor. Nothing in this License shall be deemed to + grant any rights to trademarks, copyrights, patents, trade secrets or + any other intellectual property of Licensor except as expressly stated + herein. No patent license is granted to make, use, sell or offer to + sell embodiments of any patent claims other than the licensed claims + defined in Section 2. No right is granted to the trademarks of + Licensor even if such marks are included in the Original Work. Nothing + in this License shall be interpreted to prohibit Licensor from + licensing under different terms from this License any Original Work + that Licensor otherwise would have a right to license. + . + 5) This section intentionally omitted. + . + 6) Attribution Rights. You must retain, in the Source Code of any + Derivative Works that You create, all copyright, patent or trademark + notices from the Source Code of the Original Work, as well as any + notices of licensing and any descriptive text identified therein as an + "Attribution Notice." You must cause the Source Code for any + Derivative Works that You create to carry a prominent Attribution + Notice reasonably calculated to inform recipients that You have + modified the Original Work. + . + 7) Warranty of Provenance and Disclaimer of Warranty. Licensor + warrants that the copyright in and to the Original Work and the patent + rights granted herein by Licensor are owned by the Licensor or are + sublicensed to You under the terms of this License with the permission + of the contributor(s) of those copyrights and patent rights. Except as + expressly stated in the immediately proceeding sentence, the Original + Work is provided under this License on an "AS IS" BASIS and WITHOUT + WARRANTY, either express or implied, including, without limitation, + the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A + PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL + WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential + part of this License. No license to Original Work is granted hereunder + except under this disclaimer. + . + 8) Limitation of Liability. Under no circumstances and under no legal + theory, whether in tort (including negligence), contract, or + otherwise, shall the Licensor be liable to any person for any direct, + indirect, special, incidental, or consequential damages of any + character arising as a result of this License or the use of the + Original Work including, without limitation, damages for loss of + goodwill, work stoppage, computer failure or malfunction, or any and + all other commercial damages or losses. This limitation of liability + shall not apply to liability for death or personal injury resulting + from Licensor's negligence to the extent applicable law prohibits such + limitation. Some jurisdictions do not allow the exclusion or + limitation of incidental or consequential damages, so this exclusion + and limitation may not apply to You. + . + 9) Acceptance and Termination. If You distribute copies of the + Original Work or a Derivative Work, You must make a reasonable effort + under the circumstances to obtain the express assent of recipients to + the terms of this License. Nothing else but this License (or another + written agreement between Licensor and You) grants You permission to + create Derivative Works based upon the Original Work or to exercise + any of the rights granted in Section 1 herein, and any attempt to do + so except under the terms of this License (or another written + agreement between Licensor and You) is expressly prohibited by + U.S. copyright law, the equivalent laws of other countries, and by + international treaty. Therefore, by exercising any of the rights + granted to You in Section 1 herein, You indicate Your acceptance of + this License and all of its terms and conditions. + . + 10) Termination for Patent Action. This License shall terminate + automatically and You may no longer exercise any of the rights granted + to You by this License as of the date You commence an action, + including a cross-claim or counterclaim, against Licensor or any + licensee alleging that the Original Work infringes a patent. This + termination provision shall not apply for an action alleging patent + infringement by combinations of the Original Work with other software + or hardware. + . + 11) Jurisdiction, Venue and Governing Law. Any action or suit relating + to this License may be brought only in the courts of a jurisdiction + wherein the Licensor resides or in which Licensor conducts its primary + business, and under the laws of that jurisdiction excluding its + conflict-of-law provisions. The application of the United Nations + Convention on Contracts for the International Sale of Goods is + expressly excluded. Any use of the Original Work outside the scope of + this License or after its termination shall be subject to the + requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 + et seq., the equivalent laws of other countries, and international + treaty. This section shall survive the termination of this License. + . + 12) Attorneys Fees. In any action to enforce the terms of this License + or seeking damages relating thereto, the prevailing party shall be + entitled to recover its costs and expenses, including, without + limitation, reasonable attorneys' fees and costs incurred in + connection with such action, including any appeal of such action. This + section shall survive the termination of this License. + . + 13) Miscellaneous. This License represents the complete agreement + concerning the subject matter hereof. If any provision of this License + is held to be unenforceable, such provision shall be reformed only to + the extent necessary to make it enforceable. + . + 14) Definition of "You" in This License. "You" throughout this + License, whether in upper or lower case, means an individual or a + legal entity exercising rights under, and complying with all of the + terms of, this License. For legal entities, "You" includes any entity + that controls, is controlled by, or is under common control with + you. For purposes of this definition, "control" means (i) the power, + direct or indirect, to cause the direction or management of such + entity, whether by contract or otherwise, or (ii) ownership of fifty + percent (50%) or more of the outstanding shares, or (iii) beneficial + ownership of such entity. + . + 15) Right to Use. You may use the Original Work in all ways not + otherwise restricted or conditioned by this License or by law, and + Licensor promises not to interfere with or be responsible for such + uses by You. + . + This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights + reserved. Permission is hereby granted to copy and distribute this + license without modification. This license may not be modified without + the express written permission of its copyright owner. diff --git a/deb-struct/usr/lib/spotube/doc/liblzma5/copyright b/deb-struct/usr/lib/spotube/doc/liblzma5/copyright new file mode 100644 index 00000000..d4466ce2 --- /dev/null +++ b/deb-struct/usr/lib/spotube/doc/liblzma5/copyright @@ -0,0 +1,388 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: XZ Utils +Upstream-Contact: + Lasse Collin + https://tukaani.org/xz/lists.html +Source: + https://tukaani.org/xz + https://git.tukaani.org/xz.git +Comment: + XZ Utils is developed and maintained upstream by Lasse Collin. Major + portions are based on code by other authors; see AUTHORS for details. + Most of the source has been put into the public domain, but some files + have not (details below). + . + This file describes the source package. The binary packages contain + some files derived from other works: for example, images in the API + documentation come from Doxygen. +License: + Different licenses apply to different files in this package. Here + is a rough summary of which licenses apply to which parts of this + package (but check the individual files to be sure!): + . + - liblzma is in the public domain. + . + - xz, xzdec, and lzmadec command line tools are in the public + domain unless GNU getopt_long had to be compiled and linked + in from the lib directory. The getopt_long code is under + GNU LGPLv2.1+. + . + - The scripts to grep, diff, and view compressed files have been + adapted from gzip. These scripts and their documentation are + under GNU GPLv2+. + . + - All the documentation in the doc directory and most of the + XZ Utils specific documentation files in other directories + are in the public domain. + . + - Translated messages are in the public domain. + . + - The build system contains public domain files, and files that + are under GNU GPLv2+ or GNU GPLv3+. None of these files end up + in the binaries being built. + . + - Test files and test code in the tests directory, and debugging + utilities in the debug directory are in the public domain. + . + - The extra directory may contain public domain files, and files + that are under various free software licenses. + . + You can do whatever you want with the files that have been put into + the public domain. If you find public domain legally problematic, + take the previous sentence as a license grant. If you still find + the lack of copyright legally problematic, you have too many + lawyers. + . + As usual, this software is provided "as is", without any warranty. + . + If you copy significant amounts of public domain code from XZ Utils + into your project, acknowledging this somewhere in your software is + polite (especially if it is proprietary, non-free software), but + naturally it is not legally required. Here is an example of a good + notice to put into "about box" or into documentation: + . + This software includes code from XZ Utils . + . + The following license texts are included in the following files: + - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1 + - COPYING.GPLv2: GNU General Public License version 2 + - COPYING.GPLv3: GNU General Public License version 3 + . + Note that the toolchain (compiler, linker etc.) may add some code + pieces that are copyrighted. Thus, it is possible that e.g. liblzma + binary wouldn't actually be in the public domain in its entirety + even though it contains no copyrighted code from the XZ Utils source + package. + . + If you have questions, don't hesitate to ask the author(s) for more + information. + +Files: * +Copyright: 2006-2018, Lasse Collin + 1999-2008, Igor Pavlov + 2006, Ville Koskinen + 1998, Steve Reid + 2000, Wei Dai + 2003, Kevin Springle + 2009, Jonathan Nieder + 2010, Anders F Björklund +License: PD + This file has been put in the public domain. + You can do whatever you want with this file. +Comment: + From: Lasse Collin + To: Jonathan Nieder + Subject: Re: XZ utils for Debian + Date: Sun, 19 Jul 2009 13:28:23 +0300 + Message-Id: <200907191328.23816.lasse.collin@tukaani.org> + . + [...] + . + > AUTHORS, ChangeLog, COPYING, README, THANKS, TODO, + > dos/README, windows/README + . + COPYING says that most docs are in the public domain. Maybe that's not + clear enough, but on the other hand it looks a bit stupid to put + copyright information in tiny and relatively small docs like README. + . + I don't dare to say that _all_ XZ Utils specific docs are in the public + domain unless otherwise mentioned in the file. I'm including PDF files + generated by groff + ps2pdf, and some day I might include Doxygen- + generated HTML docs too. Those don't include any copyright notices, but + it seems likely that groff + ps2pdf or at least Doxygen put some + copyrighted content into the generated files. + +Files: INSTALL NEWS PACKAGERS + windows/README-Windows.txt + windows/INSTALL-MinGW.txt +Copyright: 2009-2010, Lasse Collin +License: probably-PD + See the note on AUTHORS, README, and so on above. + +Files: src/scripts/* lib/* extra/scanlzma/scanlzma.c +Copyright: © 1993, Jean-loup Gailly + © 1989-1994, 1996-1999, 2001-2007, Free Software Foundation, Inc. + © 2006 Timo Lindfors + 2005, Charles Levert + 2005, 2009, Lasse Collin + 2009, Andrew Dudman +Other-Authors: Paul Eggert, Ulrich Drepper +License: GPL-2+ + +Files: src/scripts/Makefile.am src/scripts/xzless.1 +Copyright: 2009, Andrew Dudman + 2009, Lasse Collin +License: PD + This file has been put in the public domain. + You can do whatever you want with this file. + +Files: doc/examples/xz_pipe_comp.c doc/examples/xz_pipe_decomp.c +Copyright: 2010, Daniel Mealha Cabrita +License: PD + Not copyrighted -- provided to the public domain. + +Files: lib/getopt.c lib/getopt1.c lib/getopt.in.h +Copyright: © 1987-2007 Free Software Foundation, Inc. +Other-Authors: Ulrich Drepper +License: LGPL-2.1+ + +Files: m4/getopt.m4 m4/posix-shell.m4 +Copyright: © 2002-2006, 2008 Free Software Foundation, Inc. + © 2007-2008 Free Software Foundation, Inc. +Other-Authors: Bruno Haible, Paul Eggert +License: permissive-fsf + +Files: m4/acx_pthread.m4 +Copyright: © 2008, Steven G. Johnson +License: Autoconf + +files: m4/ax_check_capsicum.m4 +Copyright: © 2014, Google Inc. + © 2015, Lasse Collin +License: permissive-nowarranty + +Files: Doxyfile.in +Copyright: © 1997-2007 by Dimitri van Heesch +Origin: Doxygen 1.4.7 +License: GPL-2 + +Files: src/liblzma/check/crc32_table_?e.h + src/liblzma/check/crc64_table_?e.h + src/liblzma/lzma/fastpos_table.c + src/liblzma/rangecoder/price_table.c +Copyright: none, automatically generated data +Generated-With: + src/liblzma/check/crc32_tablegen.c + src/liblzma/check/crc64_tablegen.c + src/liblzma/lzma/fastpos_tablegen.c + src/liblzma/rangecoder/price_tablegen.c +License: none + No copyright to license. + +Files: .gitignore m4/.gitignore po/.gitignore po/LINGUAS po/POTFILES.in +Copyright: none; these are just short lists. +License: none + No copyright to license. + +Files: tests/compress_prepared_bcj_* +Copyright: 2008-2009, Lasse Collin +Source-Code: tests/bcj_test.c +License: PD + This file has been put into the public domain. + You can do whatever you want with this file. +Comment: + changelog.gz (commit 975d8fd) explains: + . + Recreated the BCJ test files for x86 and SPARC. The old files + were linked with crt*.o, which are copyrighted, and thus the + old test files were not in the public domain as a whole. They + are freely distributable though, but it is better to be careful + and avoid including any copyrighted pieces in the test files. + The new files are just compiled and assembled object files, + and thus don't contain any copyrighted code. + +Files: po/cs.po po/de.po po/fr.po +Copyright: 2010, Marek Černocký + 2010, Andre Noll + 2011, Adrien Nader +License: PD + This file is put in the public domain. + +Files: po/it.po po/pl.po +Copyright: 2009, 2010, Gruppo traduzione italiano di Ubuntu-it + 2010, Lorenzo De Liso + 2009, 2010, 2011, Milo Casagrande + 2011, Jakub Bogusz +License: PD + This file is in the public domain + +Files: INSTALL.generic +Copyright: © 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, + 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +License: permissive-nowarranty + +Files: dos/config.h +Copyright: © 1992, 1993, 1994, 1999, 2000, 2001, 2002, 2005 + Free Software Foundation, Inc. + 2007-2010, Lasse Collin +Other-Authors: Roland McGrath, Akim Demaille, Paul Eggert, + David Mackenzie, Bruno Haible, and many others. +Origin: configure.ac from XZ Utils, + visibility.m4 serial 1 (gettext-0.15), + Autoconf 2.52g +License: config-h + configure.ac: + . + # Author: Lasse Collin + # + # This file has been put into the public domain. + # You can do whatever you want with this file. + . + visibility.m4: + . + dnl Copyright (C) 2005 Free Software Foundation, Inc. + dnl This file is free software; the Free Software Foundation + dnl gives unlimited permission to copy and/or distribute it, + dnl with or without modifications, as long as this notice is preserved. + . + dnl From Bruno Haible. + . + comments from Autoconf 2.52g: + . + # Copyright 1992, 1993, 1994, 1999, 2000, 2001, 2002 + # Free Software Foundation, Inc. + . + [...] + . + # As a special exception, the Free Software Foundation gives unlimited + # permission to copy, distribute and modify the configure scripts that + # are the output of Autoconf. You need not follow the terms of the GNU + # General Public License when using or distributing such scripts, even + # though portions of the text of Autoconf appear in them. The GNU + # General Public License (GPL) does govern all other use of the material + # that constitutes the Autoconf program. + . + On Debian systems, the complete text of the GNU General Public + License version 2 can be found in ‘/usr/share/common-licenses/GPL-2’. + dos/config.h was generated with autoheader, which tells Autoconf to + output a script to generate a config.h file and then runs it. + +Files: po/Makevars +Origin: gettext-runtime/po/Makevars (gettext-0.12) +Copyright: © 2003 Free Software Foundation, Inc. +Authors: Bruno Haible +License: LGPL-2.1+ + The gettext-runtime package is under the LGPL, see files intl/COPYING.LIB-2.0 + and intl/COPYING.LIB-2.1. + . + On Debian systems, the complete text of intl/COPYING.LIB-2.0 from + gettext-runtime 0.12 can be found in ‘/usr/share/common-licenses/LGPL-2’ + and the text of intl/COPYING.LIB-2.1 can be found in + ‘/usr/share/common-licenses/LGPL-2.1’. + . + po/Makevars consists mostly of helpful comments and does not contain a + copyright and license notice. + +Files: COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 +Copyright: © 1989, 1991, 1999, 2007 Free Software Foundation, Inc. +License: noderivs + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +Files: debian/* +Copyright: 2009-2012, Jonathan Nieder +License: PD-debian + The Debian packaging files are in the public domain. + You may freely use, modify, distribute, and relicense them. + +License: LGPL-2.1+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1, or (at your option) + any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU Lesser General Public + License version 2.1 can be found in ‘/usr/share/common-licenses/LGPL-2.1’. + +License: GPL-2 + Permission to use, copy, modify, and distribute this software and its + documentation under the terms of the GNU General Public License is + hereby granted. No representations are made about the suitability of + this software for any purpose. It is provided "as is" without express + or implied warranty. See the GNU General Public License for more + details. + . + Documents produced by doxygen are derivative works derived from the + input used in their production; they are not affected by this license. + . + On Debian systems, the complete text of the version of the GNU General + Public License distributed with Doxygen can be found in + ‘/usr/share/common-licenses/GPL-2’. + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in ‘/usr/share/common-licenses/GPL-2’. + +License: Autoconf + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation, either version 3 of the License, or (at your + option) any later version. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program. If not, see . + . + As a special exception, the respective Autoconf Macro's copyright owner + gives unlimited permission to copy, distribute and modify the configure + scripts that are the output of Autoconf when processing the Macro. You + need not follow the terms of the GNU General Public License when using + or distributing such scripts, even though portions of the text of the + Macro appear in them. The GNU General Public License (GPL) does govern + all other use of the material that constitutes the Autoconf Macro. + . + This special exception to the GPL applies to versions of the Autoconf + Macro released by the Autoconf Archive. When you make and distribute a + modified version of the Autoconf Macro, you may extend this special + exception to the GPL to apply to your modified version as well. + . + On Debian systems, the complete text of the GNU General Public + License version 3 can be found in ‘/usr/share/common-licenses/GPL-3’. + +License: permissive-fsf + This file is free software; the Free Software Foundation + gives unlimited permission to copy and/or distribute it, + with or without modifications, as long as this notice is preserved. + +License: permissive-nowarranty + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. This file is offered as-is, + without warranty of any kind. diff --git a/deb-struct/usr/lib/spotube/doc/libpcre32-3/copyright b/deb-struct/usr/lib/spotube/doc/libpcre32-3/copyright new file mode 100644 index 00000000..c589cd88 --- /dev/null +++ b/deb-struct/usr/lib/spotube/doc/libpcre32-3/copyright @@ -0,0 +1,74 @@ +This is Debian GNU/Linux's prepackaged version of the PCRE regular +expression library and associated pgrep utility. + +This package was put together by me, Mark Baker from the +original sources obtained from ftp.csx.cam.ac.uk:/pub/software/programming/pcre. + +PCRE LICENCE +------------ + +PCRE is a library of functions to support regular expressions whose syntax +and semantics are as close as possible to those of the Perl 5 language. + +Release 7 of PCRE is distributed under the terms of the "BSD" licence, as +specified below. The documentation for PCRE, supplied in the "doc" +directory, is distributed under the same terms as the software itself. + +The basic library functions are written in C and are freestanding. Also +included in the distribution is a set of C++ wrapper functions. + + +THE BASIC LIBRARY FUNCTIONS +--------------------------- + +Written by: Philip Hazel +Email local part: ph10 +Email domain: cam.ac.uk + +University of Cambridge Computing Service, +Cambridge, England. + +Copyright (c) 1997-2007 University of Cambridge +All rights reserved. + + +THE C++ WRAPPER FUNCTIONS +------------------------- + +Contributed by: Google Inc. + +Copyright (c) 2007, Google Inc. +All rights reserved. + + +THE "BSD" LICENCE +----------------- + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the name of Google + Inc. nor the names of their contributors may be used to endorse or + promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +End diff --git a/deb-struct/usr/lib/spotube/doc/libsystemd0/copyright b/deb-struct/usr/lib/spotube/doc/libsystemd0/copyright new file mode 100644 index 00000000..8dc9bd13 --- /dev/null +++ b/deb-struct/usr/lib/spotube/doc/libsystemd0/copyright @@ -0,0 +1,262 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: systemd +Upstream-Contact: systemd-devel@lists.freedesktop.org +Source: https://www.freedesktop.org/wiki/Software/systemd/ + +Files: * +Copyright: 2008-2015 Kay Sievers + 2010-2015 Lennart Poettering + 2012-2015 Zbigniew Jędrzejewski-Szmek + 2013-2015 Tom Gundersen + 2013-2015 Daniel Mack + 2010-2015 Harald Hoyer + 2013-2015 David Herrmann + 2013, 2014 Thomas H.P. Andersen + 2013, 2014 Daniel Buch + 2014 Susant Sahani + 2009-2015 Intel Corporation + 2000, 2005 Red Hat, Inc. + 2009 Alan Jenkins + 2010 ProFUSION embedded systems + 2010 Maarten Lankhorst + 1995-2004 Miquel van Smoorenburg + 1999 Tom Tromey + 2011 Michal Schmidt + 2012 B. Poettering + 2012 Holger Hans Peter Freyther + 2012 Dan Walsh + 2012 Roberto Sassu + 2013 David Strauss + 2013 Marius Vollmer + 2013 Jan Janssen + 2013 Simon Peeters +License: LGPL-2.1+ + +Files: src/basic/siphash24.h + src/basic/siphash24.c +Copyright: 2012 Jean-Philippe Aumasson + 2012 Daniel J. Bernstein +License: CC0-1.0 + +Files: src/basic/ioprio.h +Copyright: Jens Axboe +License: GPL-2 + +Files: src/shared/linux/* + src/basic/linux/* +Copyright: 2004-2009 Red Hat, Inc. + 2011-2014 PLUMgrid + 2001-2003 Sistina Software (UK) Limited. + 2008 Ian Kent + 1998 David S. Miller >davem@redhat.com> + 2001 Jeff Garzik + 2006-2010 Johannes Berg + 2008 Luis Carlos Cobo + 2008 Michael Buesch + 2008, 2009 Luis R. Rodriguez + 2008 Jouni Malinen + 2008 Colin McCabe + 2018-2019 Intel Corporation + 2007 Oracle. + 2009 Wolfgang Grandegger + 1999 Thomas Davis + 2015 Sabrina Dubroca + 1999-2000 Maxim Krasnyansky + 2015-2019 Jason A. Donenfeld +License: GPL-2 with Linux-syscall-note exception + +Files: src/basic/sparse-endian.h +Copyright: 2012 Josh Triplett +License: Expat + +Files: src/journal/lookup3.c + src/journal/lookup3.h +Copyright: none +License: public-domain + You can use this free for any purpose. It's in the public domain. It has no + warranty. + +Files: src/udev/ata_id/ata_id.c + src/udev/cdrom_id/cdrom_id.c + src/udev/mtd_probe/mtd_probe.c + src/udev/mtd_probe/mtd_probe.h + src/udev/mtd_probe/probe_smartmedia.c + src/udev/scsi_id/scsi.h + src/udev/scsi_id/scsi_id.c + src/udev/scsi_id/scsi_id.h + src/udev/scsi_id/scsi_serial.c + src/udev/udevadm.c + src/udev/udevadm-control.c + src/udev/udevadm.h + src/udev/udevadm-info.c + src/udev/udevadm-monitor.c + src/udev/udevadm-settle.c + src/udev/udevadm-test-builtin.c + src/udev/udevadm-test.c + src/udev/udevadm-trigger.c + src/udev/udevadm-util.c + src/udev/udevadm-util.h + src/udev/udev-builtin-blkid.c + src/udev/udev-builtin.h + src/udev/udev-builtin-input_id.c + src/udev/udev-builtin-kmod.c + src/udev/udev-builtin-path_id.c + src/udev/udev-builtin-uaccess.c + src/udev/udev-builtin-usb_id.c + src/udev/udev-ctrl.h + src/udev/udevd.c + src/udev/udev-event.c + src/udev/udev-event.h + src/udev/udev-node.c + src/udev/udev-node.h + src/udev/udev-rules.c + src/udev/udev-rules.h + src/udev/udev-watch.c + src/udev/udev-watch.h + src/udev/v4l_id/v4l_id.c +Copyright: 2003-2012 Kay Sievers + 2003-2004 Greg Kroah-Hartman + 2004 Chris Friesen + 2004, 2009, 2010 David Zeuthen + 2005, 2006 SUSE Linux Products GmbH + 2003 IBM Corp. + 2007 Hannes Reinecke + 2009 Canonical Ltd. + 2009 Scott James Remnant + 2009 Martin Pitt + 2009 Piter Punk + 2009, 2010 Lennart Poettering + 2009 Filippo Argiolas + 2010 Maxim Levitsky + 2011 ProFUSION embedded systems + 2011 Karel Zak + 2014 Zbigniew Jędrzejewski-Szmek + 2014 David Herrmann + 2014 Carlos Garnacho +License: GPL-2+ + +Files: src/udev/scsi_id/* +Copyright: 2003 IBM Corp. +License: GPL-2+ + +Files: debian/* +Copyright: 2010-2013 Tollef Fog Heen + 2013-2018 Michael Biebl + 2013 Michael Stapelberg +License: LGPL-2.1+ + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + +License: GPL-2 + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian and systems the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2` + +License: GPL-2 with Linux-syscall-note exception + NOTE! This copyright does *not* cover user programs that use kernel services + by normal system calls - this is merely considered normal use of the kernel, + and does *not* fall under the heading of "derived work". Also note that the + GPL below is copyrighted by the Free Software Foundation, but the instance of + code that it refers to (the Linux kernel) is copyrighted by me and others who + actually wrote it. + . + Also note that the only valid version of the GPL as far as the kernel is + concerned is _this_ particular version of the license (ie v2, not v2.2 or v3.x + or whatever), unless explicitly otherwise stated. + . + Linus Torvalds + . + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian and systems the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2` + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in ‘/usr/share/common-licenses/GPL-2’. + +License: LGPL-2.1+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1, or (at your option) + any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU Lesser General Public + License version 2.1 can be found in ‘/usr/share/common-licenses/LGPL-2.1’. + +License: CC0-1.0 + To the extent possible under law, the author(s) have dedicated all copyright + and related and neighboring rights to this software to the public domain + worldwide. This software is distributed without any warranty. + . + You should have received a copy of the CC0 Public Domain Dedication along with + this software. If not, see . + . + On Debian systems, the complete text of the CC0 1.0 Universal license can be + found in ‘/usr/share/common-licenses/CC0-1.0’. diff --git a/deb-struct/usr/lib/spotube/index.js b/deb-struct/usr/lib/spotube/index.js new file mode 100644 index 00000000..a631cd51 --- /dev/null +++ b/deb-struct/usr/lib/spotube/index.js @@ -0,0 +1,6 @@ +const path = require("path"); +// Fix so that linux resources are found correctly +// since webpack will bundle them such that the expected path is /dist from cwd +process.chdir(path.resolve(path.dirname(process.execPath))); +// Now start loading the actual bundle +require("./dist"); diff --git a/deb-struct/usr/lib/spotube/lib/libGLX.so.0 b/deb-struct/usr/lib/spotube/lib/libGLX.so.0 new file mode 100644 index 00000000..5f780233 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libGLX.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libGLdispatch.so.0 b/deb-struct/usr/lib/spotube/lib/libGLdispatch.so.0 new file mode 100644 index 00000000..772bc010 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libGLdispatch.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libQt5Core.so.5 b/deb-struct/usr/lib/spotube/lib/libQt5Core.so.5 new file mode 100755 index 00000000..12c3df9a Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libQt5Core.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libQt5DBus.so.5 b/deb-struct/usr/lib/spotube/lib/libQt5DBus.so.5 new file mode 100755 index 00000000..c5e223da Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libQt5DBus.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libQt5Gui.so.5 b/deb-struct/usr/lib/spotube/lib/libQt5Gui.so.5 new file mode 100755 index 00000000..cd94f8c7 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libQt5Gui.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libQt5Svg.so.5 b/deb-struct/usr/lib/spotube/lib/libQt5Svg.so.5 new file mode 100755 index 00000000..519e1ed8 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libQt5Svg.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libQt5Widgets.so.5 b/deb-struct/usr/lib/spotube/lib/libQt5Widgets.so.5 new file mode 100755 index 00000000..e60dfc46 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libQt5Widgets.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libQt5XcbQpa.so.5 b/deb-struct/usr/lib/spotube/lib/libQt5XcbQpa.so.5 new file mode 100755 index 00000000..793309f4 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libQt5XcbQpa.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libX11-xcb.so.1 b/deb-struct/usr/lib/spotube/lib/libX11-xcb.so.1 new file mode 100644 index 00000000..b60b6761 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libX11-xcb.so.1 differ diff --git a/deb-struct/usr/lib/spotube/lib/libXau.so.6 b/deb-struct/usr/lib/spotube/lib/libXau.so.6 new file mode 100644 index 00000000..809bc84b Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libXau.so.6 differ diff --git a/deb-struct/usr/lib/spotube/lib/libXdmcp.so.6 b/deb-struct/usr/lib/spotube/lib/libXdmcp.so.6 new file mode 100644 index 00000000..2e05a9fb Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libXdmcp.so.6 differ diff --git a/deb-struct/usr/lib/spotube/lib/libXext.so.6 b/deb-struct/usr/lib/spotube/lib/libXext.so.6 new file mode 100644 index 00000000..4c592024 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libXext.so.6 differ diff --git a/deb-struct/usr/lib/spotube/lib/libbrotlicommon.so.1 b/deb-struct/usr/lib/spotube/lib/libbrotlicommon.so.1 new file mode 100644 index 00000000..8974f96f Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libbrotlicommon.so.1 differ diff --git a/deb-struct/usr/lib/spotube/lib/libbrotlidec.so.1 b/deb-struct/usr/lib/spotube/lib/libbrotlidec.so.1 new file mode 100644 index 00000000..4fddbe65 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libbrotlidec.so.1 differ diff --git a/deb-struct/usr/lib/spotube/lib/libbsd.so.0 b/deb-struct/usr/lib/spotube/lib/libbsd.so.0 new file mode 100644 index 00000000..86ce4ff2 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libbsd.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libdbus-1.so.3 b/deb-struct/usr/lib/spotube/lib/libdbus-1.so.3 new file mode 100644 index 00000000..fb953ac3 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libdbus-1.so.3 differ diff --git a/deb-struct/usr/lib/spotube/lib/libgcrypt.so.20 b/deb-struct/usr/lib/spotube/lib/libgcrypt.so.20 new file mode 100644 index 00000000..621de742 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libgcrypt.so.20 differ diff --git a/deb-struct/usr/lib/spotube/lib/libgthread-2.0.so.0 b/deb-struct/usr/lib/spotube/lib/libgthread-2.0.so.0 new file mode 100644 index 00000000..9f8e5829 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libgthread-2.0.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libicudata.so.56 b/deb-struct/usr/lib/spotube/lib/libicudata.so.56 new file mode 100755 index 00000000..b50f9e1a Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libicudata.so.56 differ diff --git a/deb-struct/usr/lib/spotube/lib/libicui18n.so.56 b/deb-struct/usr/lib/spotube/lib/libicui18n.so.56 new file mode 100755 index 00000000..b6d06210 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libicui18n.so.56 differ diff --git a/deb-struct/usr/lib/spotube/lib/libicuuc.so.56 b/deb-struct/usr/lib/spotube/lib/libicuuc.so.56 new file mode 100755 index 00000000..631d15ed Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libicuuc.so.56 differ diff --git a/deb-struct/usr/lib/spotube/lib/liblz4.so.1 b/deb-struct/usr/lib/spotube/lib/liblz4.so.1 new file mode 100644 index 00000000..a71e7d30 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/liblz4.so.1 differ diff --git a/deb-struct/usr/lib/spotube/lib/liblzma.so.5 b/deb-struct/usr/lib/spotube/lib/liblzma.so.5 new file mode 100644 index 00000000..3de297c9 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/liblzma.so.5 differ diff --git a/deb-struct/usr/lib/spotube/lib/libpcre.so.3 b/deb-struct/usr/lib/spotube/lib/libpcre.so.3 new file mode 100644 index 00000000..6419b4af Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libpcre.so.3 differ diff --git a/deb-struct/usr/lib/spotube/lib/libpng16.so.16 b/deb-struct/usr/lib/spotube/lib/libpng16.so.16 new file mode 100644 index 00000000..9ba2bda9 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libpng16.so.16 differ diff --git a/deb-struct/usr/lib/spotube/lib/libsystemd.so.0 b/deb-struct/usr/lib/spotube/lib/libsystemd.so.0 new file mode 100644 index 00000000..3bd8787e Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libsystemd.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libxcb-glx.so.0 b/deb-struct/usr/lib/spotube/lib/libxcb-glx.so.0 new file mode 100644 index 00000000..5b4a7e2d Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libxcb-glx.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libxcb-xkb.so.1 b/deb-struct/usr/lib/spotube/lib/libxcb-xkb.so.1 new file mode 100644 index 00000000..8525d696 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libxcb-xkb.so.1 differ diff --git a/deb-struct/usr/lib/spotube/lib/libxkbcommon-x11.so.0 b/deb-struct/usr/lib/spotube/lib/libxkbcommon-x11.so.0 new file mode 100644 index 00000000..96c5ccdb Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libxkbcommon-x11.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libxkbcommon.so.0 b/deb-struct/usr/lib/spotube/lib/libxkbcommon.so.0 new file mode 100644 index 00000000..43ddf3cb Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libxkbcommon.so.0 differ diff --git a/deb-struct/usr/lib/spotube/lib/libzstd.so.1 b/deb-struct/usr/lib/spotube/lib/libzstd.so.1 new file mode 100644 index 00000000..c915c709 Binary files /dev/null and b/deb-struct/usr/lib/spotube/lib/libzstd.so.1 differ diff --git a/deb-struct/usr/lib/spotube/plugins/iconengines/libqsvgicon.so b/deb-struct/usr/lib/spotube/plugins/iconengines/libqsvgicon.so new file mode 100755 index 00000000..fb884280 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/iconengines/libqsvgicon.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/imageformats/libqgif.so b/deb-struct/usr/lib/spotube/plugins/imageformats/libqgif.so new file mode 100755 index 00000000..3340d8c5 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/imageformats/libqgif.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/imageformats/libqico.so b/deb-struct/usr/lib/spotube/plugins/imageformats/libqico.so new file mode 100755 index 00000000..a3ff0af3 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/imageformats/libqico.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/imageformats/libqjpeg.so b/deb-struct/usr/lib/spotube/plugins/imageformats/libqjpeg.so new file mode 100755 index 00000000..35829fbf Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/imageformats/libqjpeg.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/imageformats/libqsvg.so b/deb-struct/usr/lib/spotube/plugins/imageformats/libqsvg.so new file mode 100755 index 00000000..f3a4557e Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/imageformats/libqsvg.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so b/deb-struct/usr/lib/spotube/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so new file mode 100755 index 00000000..044e4d4d Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so b/deb-struct/usr/lib/spotube/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so new file mode 100755 index 00000000..453bd191 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/platforms/libqxcb.so b/deb-struct/usr/lib/spotube/plugins/platforms/libqxcb.so new file mode 100755 index 00000000..24397b32 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/platforms/libqxcb.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/xcbglintegrations/libqxcb-egl-integration.so b/deb-struct/usr/lib/spotube/plugins/xcbglintegrations/libqxcb-egl-integration.so new file mode 100755 index 00000000..e394b809 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/xcbglintegrations/libqxcb-egl-integration.so differ diff --git a/deb-struct/usr/lib/spotube/plugins/xcbglintegrations/libqxcb-glx-integration.so b/deb-struct/usr/lib/spotube/plugins/xcbglintegrations/libqxcb-glx-integration.so new file mode 100755 index 00000000..213c14d2 Binary files /dev/null and b/deb-struct/usr/lib/spotube/plugins/xcbglintegrations/libqxcb-glx-integration.so differ diff --git a/deb-struct/usr/lib/spotube/qode b/deb-struct/usr/lib/spotube/qode new file mode 100755 index 00000000..315ae3df Binary files /dev/null and b/deb-struct/usr/lib/spotube/qode differ diff --git a/deb-struct/usr/lib/spotube/qode.json b/deb-struct/usr/lib/spotube/qode.json new file mode 100644 index 00000000..7a9ebc58 --- /dev/null +++ b/deb-struct/usr/lib/spotube/qode.json @@ -0,0 +1,3 @@ +{ + "distPath": "./index.js" +} diff --git a/deb-struct/usr/lib/spotube/qt.conf b/deb-struct/usr/lib/spotube/qt.conf new file mode 100644 index 00000000..ee4ed36b --- /dev/null +++ b/deb-struct/usr/lib/spotube/qt.conf @@ -0,0 +1,7 @@ +# Generated by linuxdeployqt +# https://github.com/probonopd/linuxdeployqt/ +[Paths] +Prefix = ./ +Plugins = plugins +Imports = qml +Qml2Imports = qml diff --git a/deb-struct/usr/lib/spotube/spotube.desktop b/deb-struct/usr/lib/spotube/spotube.desktop new file mode 100644 index 00000000..7440c1ca --- /dev/null +++ b/deb-struct/usr/lib/spotube/spotube.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Spotube +Exec=AppRun +Icon=spotube +Comment=A music streaming app combining the power of Spotify & Youtube +Terminal=false +Categories=Music; diff --git a/deb-struct/usr/lib/spotube/spotube.png b/deb-struct/usr/lib/spotube/spotube.png new file mode 100644 index 00000000..93d05c6c Binary files /dev/null and b/deb-struct/usr/lib/spotube/spotube.png differ diff --git a/deb-struct/usr/share/applications/spotube.desktop b/deb-struct/usr/share/applications/spotube.desktop new file mode 100644 index 00000000..7dfd568e --- /dev/null +++ b/deb-struct/usr/share/applications/spotube.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Spotube +Exec=AppRun +Icon=/usr/lib/spotube/spotube.png +Comment=A music streaming app combining the power of Spotify & Youtube +Terminal=false +Categories=Music; diff --git a/deploy/linux/spotube/Spotube Icon.svg b/deploy/linux/spotube/Spotube Icon.svg new file mode 100644 index 00000000..954565fc --- /dev/null +++ b/deploy/linux/spotube/Spotube Icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/deploy/linux/spotube/spotube.desktop b/deploy/linux/spotube/spotube.desktop index a5c80915..7440c1ca 100644 --- a/deploy/linux/spotube/spotube.desktop +++ b/deploy/linux/spotube/spotube.desktop @@ -2,7 +2,7 @@ Type=Application Name=Spotube Exec=AppRun -Icon=default +Icon=spotube Comment=A music streaming app combining the power of Spotify & Youtube -Terminal=true +Terminal=false Categories=Music; diff --git a/deploy/linux/spotube/spotube.png b/deploy/linux/spotube/spotube.png new file mode 100644 index 00000000..93d05c6c Binary files /dev/null and b/deploy/linux/spotube/spotube.png differ diff --git a/package.json b/package.json index 04c47e3a..93ec81b8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "start": "qode ./dist/index.js", "start:trace": "qode ./dist/index.js --trace", "debug": "qode --inspect ./dist/index.js", - "pack": "nodegui-packer -p ./dist" + "pack": "nodegui-packer -p ./dist", + "pack-deb": "node scripts/build-deb.js" }, "dependencies": { "@nodegui/nodegui": "^0.27.0", diff --git a/scripts/build-deb.js b/scripts/build-deb.js new file mode 100644 index 00000000..0ff4b7e1 --- /dev/null +++ b/scripts/build-deb.js @@ -0,0 +1,86 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const fs = require("fs"); +const process = require("child_process"); +// Get the foldername +const deployDir = path.join("deploy"); // ./deploy relative to where command is executed +const debStructDir = path.join(__dirname, "..", "deb-struct"); // ./deb-struct relative to where command is executed +const configFile = path.join(deployDir, "config.json"); +const appName = JSON.parse(fs.readFileSync(configFile, { encoding: 'utf8' })).appName; +const appNameSanitized = appName.replace(' ', '').toLowerCase(); +const buildFolder = path.join(deployDir, "linux", "build", appName); +function cleanDirectories() { + console.log("Cleaning DEBIAN:"); + console.log(process.execSync('rm -rf ' + debStructDir + '/DEBIAN/*')); + console.log("Cleaning bin:"); + console.log(process.execSync('rm -rf ' + debStructDir + '/usr/bin/*')); + console.log("Cleaning lib:"); + console.log(process.execSync('rm -rf ' + debStructDir + '/usr/lib/*')); + console.log("Cleaning applications:"); + console.log(process.execSync('rm -rf ' + debStructDir + '/usr/share/applications/*')); +} +function copyControlFile() { + console.log("Copying control:"); + console.log(process.execSync('cp ./control ' + debStructDir + '/DEBIAN/control')); +} +function copyBuildFolderToLib() { + const folderPath = path.join(debStructDir, "usr", "lib"); + console.log("Copying Build Folder:"); + console.log(process.execSync('cp -R "' + buildFolder + '" "' + folderPath + '"')); + console.log(process.execSync('cp -R ./assets "' + path.join(folderPath, appName) + '"')); + if (appName !== appNameSanitized) { + console.log(process.execSync('mv "' + path.join(folderPath, appName) + '" "' + path.join(folderPath, appNameSanitized) + '"')); + } +} +function createSymlinkToBin() { + const folderPath = '"' + path.join(debStructDir, "usr", "bin", appName) + '"'; + console.log("Generating Symlink:"); + console.log(process.execSync('ln -s /usr/lib/' + appNameSanitized + '/qode ' + folderPath)); +} +function copyDesktopFileToApplications() { + console.log("Copying Desktop File:"); + const desktopSrc = path.join(buildFolder, getFilesFromPath(buildFolder, '.desktop')[0]); + const desktopDest = path.join(debStructDir, 'usr', 'share', 'applications', appName.replace(' ', '').toLowerCase() + '.desktop'); + console.log(process.execSync('cp "' + desktopSrc + '" "' + desktopDest + '"')); + // Copy icon and change relative Icon path to absolute path + const desktopContents = fs.readFileSync(desktopDest).toString(); + let m; + const regex = /^Icon=(.*)$/m; + const matches = regex.exec(desktopContents); + if (matches && matches.length > 1) { + const iconFileName = matches[1]; + if (!path.isAbsolute(iconFileName)) { + // check if file exists, look for extensions {.png,.svg,.svgz,.xpm} as @nodegui/packer does + let iconFileExt = ''; + for (const fileExt of ['png', 'svg', 'svgz', 'xpm']) { + if (fs.existsSync(path.join(path.dirname(desktopSrc), iconFileName + '.' + fileExt))) { + iconFileExt = fileExt; + break; + } + } + if (!iconFileExt) { + throw new Error(iconFileName + '{.png,.svg,.svgz,.xpm} defined in desktop file but not found in ' + path.dirname(desktopSrc)); + } + const absIconPath = '/' + path.join('usr', 'lib', appNameSanitized, iconFileName + '.' + iconFileExt); + fs.writeFileSync(desktopDest, desktopContents.replace(regex, 'Icon=' + absIconPath)); + console.log('Adjusted relative icon path: ' + iconFileName + ' => ' + absIconPath); + } + } +} +function createDeb() { + // Create DEBIAN File + console.log("Generating Debian:"); + console.log(process.execSync('dpkg-deb --build "' + debStructDir + '" "' + appNameSanitized + '.deb"')); +} +function getFilesFromPath(path, extension) { + let files = fs.readdirSync(path); + return files.filter(file => file.match(new RegExp(`.*\.(${extension})`, 'ig'))); +} +cleanDirectories(); +copyControlFile(); +copyBuildFolderToLib(); +createSymlinkToBin(); +copyDesktopFileToApplications(); +createDeb(); +//# sourceMappingURL=build-deb.js.map