Forum
    • Categories
    • Register
    • Login

    Automatic license file placement, like user presets

    Scheduled Pinned Locked Moved General Questions
    8 Posts 3 Posters 21 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dannytaurusD
      dannytaurus
      last edited by dannytaurus

      Any interest in this as a PR? Or are you all handling license files in your installer?

      I extended HISE to write the project's LICENSE.txt file into the AppData folder on first launch.

      Same mechanism as the UserPresets system.

      1. When you compile the plugin VST/AU, it looks for a LICENSE.txt file in the project root
      2. If it finds one, it bundles into the embedded data
      3. On first plugin launch, it writes the LICENSE.txt to the user's AppData folder, next to UserPresets
      4. It respects the version number, same as UserPresets, and overwrites if the version has changed

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @dannytaurus
        last edited by David Healey

        @dannytaurus I include this in my installer, you could also do it through a HISE script.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

        dannytaurusD 1 Reply Last reply Reply Quote 1
        • dannytaurusD
          dannytaurus @David Healey
          last edited by

          @David-Healey How would you do it with script?

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @dannytaurus
            last edited by

            @dannytaurus I'd include the license in a .js file, then use File.writeString() to put it into a file in the app data folder.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - HISE tutorials
            My Patreon - More HISE tutorials

            dannytaurusD 1 Reply Last reply Reply Quote 1
            • dannytaurusD
              dannytaurus @David Healey
              last edited by dannytaurus

              @David-Healey Gotcha. Problem with that method is keeping two separate copies/formats of the license text in sync, assuming you also want to display it on your website/elsewhere too.

              I'm not even sure how I want to show/store the plugin license yet.

              I looked at a bunch of other (well-known) plugins on my system and can't find any licenses/EULA files for most of them.

              They either have it in a panel in the plugin, or it's just on their website.

              Meat Beats: https://meatbeats.com
              Klippr Video: https://klippr.video

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @dannytaurus
                last edited by David Healey

                @dannytaurus I show it in the first page of the installer and it's on the website. Adding it into the app data folder too seems like a good idea so I might do that.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - HISE tutorials
                My Patreon - More HISE tutorials

                dannytaurusD 1 Reply Last reply Reply Quote 0
                • dannytaurusD
                  dannytaurus @David Healey
                  last edited by

                  @David-Healey said in Automatic license file placement, like user presets:

                  the first page of the installer and it's on the website

                  Yeah, that's all I was going to do too. But then I thought some persisted version on the user's disk might be good too.

                  I think probably the best way is to show it in the plugin, even if it's a footer link in a settings/credits panel.

                  That's the only way to be sure that the license always travels with the plugin.

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

                  1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk
                    last edited by ustk

                    Why not just verify if it's on the disk or not and pull it from the server?
                    Assuming plugins are connect to the internet for your license system in the first place...

                    EDIT: or even simpler, pull it at the same time you pull the plugin's license...

                    Hise made me an F5 dude, any other app just suffers...

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    11

                    Online

                    2.4k

                    Users

                    13.8k

                    Topics

                    120.0k

                    Posts