HISE Logo Forum
    • Categories
    • Register
    • Login

    Setting(flag) to not have the plugin start the sample install process when the link file is missing

    Scheduled Pinned Locked Moved General Questions
    47 Posts 5 Posters 2.4k 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.
    • d.healeyD
      d.healey @virtuscapeaudio
      last edited by d.healey

      @virtuscapeaudio You still need to let the user choose where they want to put the files. Then you need to populate the "Link" file with that location.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      virtuscapeaudioV 1 Reply Last reply Reply Quote 0
      • virtuscapeaudioV
        virtuscapeaudio @d.healey
        last edited by

        @d-healey Ahh ok...I'm after negating the user doing anything with any file. With such a small file size I assumed it was possible to ship the instrument with everything done for them. Onward!

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @virtuscapeaudio
          last edited by

          @virtuscapeaudio The samples aren't embedded in the plugin, so they have to go somewhere on the user's system, and the user should be the one to choose where that is.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          virtuscapeaudioV 1 Reply Last reply Reply Quote 0
          • virtuscapeaudioV
            virtuscapeaudio @d.healey
            last edited by

            @d-healey Yes sir, understood! thanks for the clarification

            DanHD 1 Reply Last reply Reply Quote 1
            • DanHD
              DanH @virtuscapeaudio
              last edited by

              @virtuscapeaudio I think with a product of that size you can forget about letting the user choose a sample location. I do and have never had any complaints. It will certainly make your life easier!

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              virtuscapeaudioV 1 Reply Last reply Reply Quote 0
              • virtuscapeaudioV
                virtuscapeaudio @DanH
                last edited by virtuscapeaudio

                @DanH Yes! I just have no idea where to begin to do that at this point..any tips?

                DanHD 1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @virtuscapeaudio
                  last edited by

                  @virtuscapeaudio So you'll need to get your head around making installers. Whitebox Packages for OSX and InnoSetup for Windows will create these for you. Have you searched the forum yet? There are scripts and explanations available for both IIRC.

                  Essentially you create an installer that installs the plug-in files and the samples. If you know where the samples are going to be on each system then you can simply install the Link file which contains the location of the samples (and not have to worry about making scripts to handle creating links files in the installers themselves).

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                  • virtuscapeaudioV
                    virtuscapeaudio @DanH
                    last edited by

                    @DanH Yes I currently use Packages. So with the LinkFile I can place everything in the users HOME/Library/Appplication supp.., etc, folder instead of their USER folder? Seems simple enough. I'll give it a go

                    DanHD 1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @virtuscapeaudio
                      last edited by

                      @virtuscapeaudio well yes but because your plug-in’s system files are in the system library rather than the user library you’ll need a shell script which copies the files from the user library to the system library post-install, as packages can’t actually install files there directly. I think this has been covered in the forum as well.

                      Have you got an apple developer account?

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                      • virtuscapeaudioV
                        virtuscapeaudio @DanH
                        last edited by virtuscapeaudio

                        @DanH ChatGPT helped me cook this up based on the Lunacy Audio CUBE (would love to meet the dev here! ;) ) script which I modified..does this look right?

                        #!/bin/sh
                        // Write sample location selected by user to LinkOSX for HISE

                        //Specify the username
                        username="your_username"

                        // First, remove LinkOSX file if it exists
                        instrumentname="Rhodecase88"
                        devname="Virtuscape Audio"

                        FILE="~${username}/Library/Application Support/${devname}/${instrumentname}/LinkOSX"
                        if [ -e "$FILE" ]; then
                        rm -R "$FILE"
                        fi

                        cp -R "$HOME/Library/Application Support/${devname}/${instrumentname}" "/Library/Application Support/${devname}/"

                        // Second, use the environment variable from WhiteBox Packages to write the destination to a file
                        destfile="~${username}/Library/Application Support/${devname}/${instrumentname}/LinkOSX"
                        printf "%s/Lunacy Audio/CUBE/Samples" "$DSTROOT" > "$destfile"

                        d.healeyD DanHD 2 Replies Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @virtuscapeaudio
                          last edited by

                          @virtuscapeaudio As far as I know // doesn't create comments in a bash script.

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                          • virtuscapeaudioV
                            virtuscapeaudio @d.healey
                            last edited by

                            @d-healey gotcha! i changed the comments from # to // because when i submit the forum post they were HUGE and underlined fonts lol and my adhd said...I need symmetry

                            1 Reply Last reply Reply Quote 0
                            • DanHD
                              DanH @virtuscapeaudio
                              last edited by

                              @virtuscapeaudio this script is for making the link file which I just said you don’t need to do 😂.

                              But you could just let users choose where to store the samples and use this script after all.

                              Better you try and understand what the scripts doing and how it works - it’s not too tricky.

                              Did you find any other scripts for packages on the forum?

                              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                              https://dhplugins.com/ | https://dcbreaks.com/
                              London, UK

                              virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                              • virtuscapeaudioV
                                virtuscapeaudio @DanH
                                last edited by

                                @DanH OOOohhhh... my mistake.. so If im understanding this correctly, the process goes:

                                Packages project:

                                1. place plug-in files and ch1 files

                                2. Include a LinkOSX file and place it ... where exactly?

                                DanHD 1 Reply Last reply Reply Quote 0
                                • DanHD
                                  DanH @virtuscapeaudio
                                  last edited by

                                  @virtuscapeaudio have you made the plugin yet? Exported and tested in a DAW?

                                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                  https://dhplugins.com/ | https://dcbreaks.com/
                                  London, UK

                                  virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                                  • virtuscapeaudioV
                                    virtuscapeaudio @DanH
                                    last edited by

                                    @DanH yes we are quietly live ;)

                                    www.virtuscapeaudio.com

                                    I'm just trying to get this together before make a huge announcement, etc

                                    DanHD 1 Reply Last reply Reply Quote 0
                                    • DanHD
                                      DanH @virtuscapeaudio
                                      last edited by

                                      @virtuscapeaudio well you must know where the link file is that tells the plugin where the samples are? Right? 😆 That's where you'll need to install the link file on other people's systems.

                                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                      https://dhplugins.com/ | https://dcbreaks.com/
                                      London, UK

                                      virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                                      • virtuscapeaudioV
                                        virtuscapeaudio @DanH
                                        last edited by

                                        @DanH not enough coffee apparently haha. Thanks so much for taking the time to help!

                                        DanHD 1 Reply Last reply Reply Quote 0
                                        • DanHD
                                          DanH @virtuscapeaudio
                                          last edited by

                                          @virtuscapeaudio have a look through this thread, I think I got most of my script from here:

                                          Link Preview Image
                                          Mac Installer issue that effects (I think) all of us

                                          @dustbro I'm having one serious issue with this approach and I wonder if you've encountered this as well. When I rsync the application folder like above, if ...

                                          favicon

                                          Forum (forum.hise.audio)

                                          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                          https://dhplugins.com/ | https://dcbreaks.com/
                                          London, UK

                                          virtuscapeaudioV 1 Reply Last reply Reply Quote 0
                                          • virtuscapeaudioV
                                            virtuscapeaudio @DanH
                                            last edited by virtuscapeaudio

                                            @DanH here's where I'm at with this...I'm manually copying the Samples folder and testing on my system before packaging everything up

                                            With HISE I set the Redirect Sample Folder to: /Libary/Application Support/Virtuscape Audio/Rhodecase88/Samples

                                            When I open the either AU/VST3 version it creates a NEW LinkOSX file at ~/Library/Application Support/Virtuscape Audio/Rhodecase88 (perhaps this is from linking previous versions from testing where i indeed was using ~/Library

                                            I'm struggling to see where I place a LinkOSX as Packages can only go to one location.

                                            ...trying this approach as most plug-ins by default are in /Library and not ~/Library

                                            OSMonterey 12.2.1

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

                                            49

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.9k

                                            Posts