maphew

Fossil + Pharo + webstuff = Brea CMS

2020-Nov-19

Install 3rd party tools: Fossil, Pandoc

choco install fossil pandoc

 

Install Pharo, Grafoscopio, Brea

install Pharo launcher to something like C:\apps\PharoLauncher

(Important to use a short path on Windows[1])

Run Pharo launcher and then close it.

For some reason changing the settings within the app doesn't save them, even when using the "Store settings" menu item. So  Edit %AppData%\Roaming\pharo-launcher\settings.ston and change C:\\Users\\Matt\\Documents\\Pharo to D:\\Matt\\Pharo

Then move files on disk from C:\Users\... to that same path

Run Pharo launcher

New image >> Official >> Pharo 8.0 x64

(good idea to rename the image to a short name here too, and avoid special or accented characters)

Launch the image >> Tools >> Playground >> enter these codes and run:

"Install Grafscopio"

location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'Grafoscopio'.
(IceRepositoryCreator new
    location: location;
    remote: (IceGitRemote url: 'https://code.tupale.co/Offray/Grafoscopio.git');
    createRepository)
register.

Metacello new
    repository: 'gitlocal://', location fullName;
    baseline: 'Grafoscopio';
    load

Another playground:

"Install Brea"

location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'Brea'.
(IceRepositoryCreator new
        location: location;
        remote: (IceGitRemote url: 'https://code.tupale.co/Offray/Brea.git');
        createRepository)
register.

Metacello new
        repository: 'gitlocal://', location fullName;
        baseline: 'Brea';
        load

From <http://mutabit.com/repos.fossil/brea/doc/trunk/index.md.html>

Pharo >> Save Settings

Download "brea.ston" (http://mutabit.com/repos.fossil/brea/doc/tip/brea.ston)

Pharo >> Grafscopio >> Open from file >> brea.ston

Pharo >> Save settings

===========

[1]  "failed to resolve path error"

hmm, it's looking under c:\users\matt\documents\pharo but I installed to d:\matt\pharo. There are dirs and files under C: docs though.

Ahh, it's a file path length limitation.

The workaround is to use the shared repository setting in Iceberg, and set it to a short path like c:\repo

From <https://github.com/exercism/pharo-smalltalk/issues/140>