-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
As the 64bit FFI Plugin is currently not working correctly the 32bit VM must be used as a workaround. To set up a 32bit SWT image you can use the following script:
"-=-=-=-=-="
|balloon progdir base|
progdir := (Smalltalk commandLine argumentAt: 1) ifNil: [FileDirectory default fullName].
base := (Smalltalk commandLine argumentAt: 2) ifNil: ['SWA2018'].
Deprecation showDeprecationWarnings: false.
[MCMcmUpdater default doUpdate: false. "non-interactive"]
on: MCEmptyVersion do: [:warning | warning resume].
"-=-=-=-=-="
Installer gemsource
project: 'metacello';
addPackage: 'ConfigurationOfMetacello';
install.
"Bootstrap Metacello Preview, using mcz files (#'previewBootstrap' symbolic version"
((Smalltalk at: #ConfigurationOfMetacello) project
version: #'previewBootstrap') load.
"Quickfix"
Installer squeak
project: 'squeak51';
install: 'SqueakSSL-Core';
install: 'WebClient-Core';
yourself.
"Load the Preview version of Metacello from GitHub"
(Smalltalk at: #Metacello) new
configuration: 'MetacelloPreview';
version: #stable;
repository: 'github://Metacello/metacello:configuration';
load.
"Now load latest version of Metacello"
(Smalltalk at: #Metacello) new
baseline: 'Metacello';
repository: 'github://Metacello/metacello:master/repository';
get.
(Smalltalk at: #Metacello) new
baseline: 'Metacello';
repository: 'github://Metacello/metacello:master/repository';
load.
"-=-=-=-=-="
Preferences removeAllPreferencesSuchThat: [:ea | ea provider == MCGitBasedNetworkRepository].
"-=-=-=-=-="
"-=-=-=-=-="
Installer squeakTrunk install: 'Help-Squeak-CorePackages'.
Utilities authorInitials: 'hpi'. "changed at end"
[(Smalltalk at: #Metacello) new
configuration: 'SwaLint';
githubUser: 'HPI-SWA-Teaching' project: 'SwaLint' commitish: '' path: 'packages';
load] valueSupplyingAnswer: true.
(Smalltalk at: #Metacello) new
baseline: 'AutoTDD';
githubUser: 'HPI-SWA-Teaching' project: 'AutoTDD' commitish: '' path: 'packages';
load.
(Smalltalk at: #Metacello) new
baseline: 'Koans';
githubUser: 'HPI-SWA-Teaching' project: 'Koans' commitish: '' path: 'src';
load.
(Smalltalk at: #Metacello) new
configuration: 'RefactoringTools';
load.
(Smalltalk at: #Metacello) new
configuration: 'OCompletion';
load.
"(Smalltalk at: #Metacello) new
baseline: 'Algernon';
githubUser: 'HPI-SWA-Teaching' project: 'Algernon-Launcher' commitish: '' path: 'packages';
load.
"
"(Smalltalk at: #ALGCore) perform: #activationString: with: '<Cmd-space>'."
(Smalltalk at: #ECPreferences) perform: #smartCharacters: with: false.
"-=-=-=-=-="
"Install Squot-develop for latest fixes"
[Metacello new
baseline: 'Squot';
repository: 'github://hpi-swa/Squot:develop/src';
load.
] on: Warning do: [:e | e resume].
"-=-=-=-=-="
Preferences disable: #projectZoom.
Preferences enable: #mouseOverForKeyboardFocus.
Preferences disable: #alternativeBrowseIt.
SystemBrowser default: Browser.
TextEditor autoEnclose: false.
TextEditor destructiveBackWord: true.
"-=-=-=-=-="
Project current resourceManager reset.
Smalltalk cleanUp: true.
MCHttpRepository clearCredentials.
Environment allInstancesDo: [:env | env purgeUndeclared].
Undeclared removeUnreferencedKeys.
Smalltalk garbageCollect.
"-=-=-=-=-="
MCFileBasedRepository flushAllCaches.
MCCacheRepository instVarNamed: 'default' put: nil.
Categorizer sortAllCategories.
ChangeSet current clear.
ChangeSet current name: 'Unnamed1'.
Smalltalk garbageCollect.
MCCacheRepository cacheDirectory recursiveDelete.
Smalltalk fixObsoleteReferences.
"-=-=-=-=-="
Preferences disable: #showSharedFlaps.
Utilities authorInitials: String empty.
Smalltalk garbageCollect.
(World findA: PreferenceWizardMorph) ifNotNil: [:m | m perform: #showSqueak].
"-=-=-=-=-="
Project current in: [:oldProject |
WorldState addDeferredUIMessage: [
"-=-=-=-=-="
Project deletingProject: oldProject.
ProjectHistory forget: oldProject.
Project forget: oldProject.
Project current setParent: Project current.
Preferences disable: #showSharedFlaps.
"-=-=-=-=-="
TheWorldMainDockingBar updateInstances.
(UserInterfaceTheme named: 'Squeak') apply.
HostWindowProxy new primitiveWindowSize: 1 x: 1024 y: 768.
Smalltalk saveAs: base, '.image'.
WorldState addDeferredUIMessage: [
ReleaseBuilder openWelcomeWorkspacesWith: nil.
PreferenceWizardMorph open].
Smalltalk snapshot: true andQuit: true.
].
(Smalltalk at: #AnimMorphicProject) new enter: false.
].
Metadata
Metadata
Assignees
Labels
No labels