{"id":259,"date":"2018-08-26T12:53:57","date_gmt":"2018-08-26T12:53:57","guid":{"rendered":"http:\/\/memnarch.bplaced.net\/blog\/?p=259"},"modified":"2018-08-26T13:13:16","modified_gmt":"2018-08-26T13:13:16","slug":"support-for-multiple-licenses-in-a-single-package","status":"publish","type":"post","link":"https:\/\/memnarch.bplaced.net\/blog\/2018\/08\/support-for-multiple-licenses-in-a-single-package\/","title":{"rendered":"Delphinus support for multiple licenses in a single package"},"content":{"rendered":"<p>Something that has been overdue for a very long time is the support for multiple licenses in a single package.<!--more-->And after way to much time (the original issue dates back to 2016), I&#8217;ve finally added support for it. This comes with a little change to the json.<\/p>\n<p>Previously you&#8217;d write this to add your license to the package:<\/p>\n<blockquote><p>&#8230;<br \/>\n&#8220;license_type&#8221;: &#8220;MIT&#8221;,<br \/>\n&#8220;license_file&#8221;: &#8220;License.txt&#8221;,<br \/>\n&#8230;<\/p><\/blockquote>\n<p>This has changed to an array, to allow multiple entries:<\/p>\n<blockquote><p>&#8230;<br \/>\n&#8220;licenses&#8221;:<br \/>\n[<br \/>\n{<br \/>\n&#8220;type&#8221;: &#8220;MIT&#8221;,<br \/>\n&#8220;file&#8221;: &#8220;License.txt&#8221;<br \/>\n}<br \/>\n]<br \/>\n&#8230;<\/p><\/blockquote>\n<p>The <a href=\"https:\/\/github.com\/Memnarch\/Delphinus\/wiki\/Delphinus.Info.json\">documentation <\/a>has been updated accordingly and you should use this structure as of now. But don&#8217;t worry. This doesn&#8217;t mean that older json files are now broken. The reader has a fallback (when no &#8220;licenses&#8221; entry exists) for using the old pattern.<\/p>\n<p>The LicenseDialog now presents each license in its own tab<br \/>\n<a href=\"https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseDialog1.png\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-265 size-full aligncenter\" src=\"https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseDialog1.png\" alt=\"\" width=\"556\" height=\"322\" srcset=\"https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseDialog1.png 556w, https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseDialog1-414x240.png 414w, https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseDialog1-300x174.png 300w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/a><br \/>\nThe Delphinus Commandline (DPM.exe) has a new parameter for the &#8220;-License&#8221; switch on the &#8220;Info&#8221; command. It allows you to select a specific license in a package (by type) for reading. If this parameter is not used, it will list ALL licenses at once. So for packages with a single License there is no change in behavior. But with multiple this is going to help.<\/p>\n<p><a href=\"https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseTypeParameter.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-full wp-image-261 aligncenter\" src=\"https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseTypeParameter.png\" alt=\"LicenseTypeParameter\" width=\"979\" height=\"426\" srcset=\"https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseTypeParameter.png 979w, https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseTypeParameter-552x240.png 552w, https:\/\/memnarch.bplaced.net\/blog\/wp-content\/uploads\/2018\/08\/LicenseTypeParameter-300x131.png 300w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something that has been overdue for a very long time is the support for multiple licenses in a single package.<\/p>\n","protected":false},"author":1,"featured_media":260,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,17,3],"tags":[],"_links":{"self":[{"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/posts\/259"}],"collection":[{"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":7,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/posts\/259\/revisions\/270"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/media\/260"}],"wp:attachment":[{"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memnarch.bplaced.net\/blog\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}