Standalone:
Filter:
Standalone (extension) | Standalone

Standalone
ExtensionExtension

Keep macOS Standalone apps fully self-contained.

Description

The Standalone quark allows exporting a fully self-contained macOS Standalone from a setup in a SuperCollider environment, and locking it against accidental installation changes.

First quick example - install this quark:

This should end with opening the new app, and playing a little line of chords when all is well.

Class Methods

.export

export current SuperCollider app and its quark setup as a standalone. exporting may sometimes fail for unknown reasons. please report if that happens. :

.appName

the name of the current app

.appPath

the path to the current app

.appDir

the dir where the current app is

.activate

Turn the current app into a selfcontained standalone.

.lock

.unlock

Turn checking for paths on startup on and off.

.activate

.locksOnStartup

a flag whether Standalone will check for locking on startup

Internal Methods

.initClass

Standalone will check for self-containedness on startup if lock file is present.

.lockupFilename

.lockupPath

the filename and path for the lock file (inside String.scDir)

.internalExtDirName

.internalExtDir

the folder name and path for the internal Extentions dir (inside String.scDir)

.isInClassLib

checks whether Standalone.sc is already in the default SCClassLibrary

.isInIntExt

checks whether Standalone.sc is in the InternalExtensions folder

.moveToClassLib

moves Standalone.sc to the default SCClassLibrary

.checkAndSetPaths

check whether includePaths and excludePaths are set for self-containment.

.clearIncludePaths

remove all includePaths except internalExtDir

.excludeExternalExtDirs

exclude userAppSupportDir and systemAppSupportDir

.includeInternalExtDir

add internalExtDir to includePaths

.startupFileText

return default codestring for making a startupFiles method

.startupFileText

return default codestring for making a startup.scd file

.checkAndSetDirPaths

check and set dirPaths for standalone if needed. returns flag true when changes were made.

Tests

Most of these should not be neceassary, because export works well now.