Bay Six Software Forum Index Bay Six Software
Beyond the Basics
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simplifying SB installation

 
Post new topic   Reply to topic    Bay Six Software Forum Index -> SapientBoard
View previous topic :: View next topic  
Author Message
Brent
Site Admin


Joined: 01 Jul 2005
Posts: 797

PostPosted: Apr 9th, 2009, 9:55pm    Post subject: Simplifying SB installation Reply with quote

Hi all,

I'm interested in ways to make installation of SB simpler. As it stands now, you have to unzip the contents to a folder under RB's root and copy the main BAS file to a newly created project folder.

I came up with a new procedure I think simplifies the process.
  1. Unzip the downloaded file to the "projects" folder, creating the "SapientBoard_project" subfolder.
  2. Start the RB IDE in a web browser.
  3. Create a new project and give it a name of your choosing.
  4. Paste the following code into the editor, replacing "myboard" with name of the project you chose, and save.
    Code:
    Run "SapientBoard", #sb
    Head #sb init$("myboard")
    Render #sb
    End

  5. Publish the newly created project.

_________________
Brent
Back to top
View user's profile Send private message Send e-mail
Brent
Site Admin


Joined: 01 Jul 2005
Posts: 797

PostPosted: Apr 10th, 2009, 4:03am    Post subject: Re: Simplifying SB installation Reply with quote

Nix that. Actually I could make installing SB much more streamlined.

The fact that the "app" key is unset when you run a program from the IDE can be used to its advantage. The program simply checks that app is unassigned and if it is, checks for the state of a new install, and if that is the case, it starts the automated install. Otherwise, it just displays a link to start SB in a new window, as it does now.

The installer would potentially need to create a project file and write the above post's code into a file. Then it would need to modify the "prefs.xml" file to publish the app under the desired name.

I hope that doesn't sound too scary to anyone.

_________________
Brent
Back to top
View user's profile Send private message Send e-mail
STPendl
Full Member


Joined: 20 Aug 2007
Posts: 161
Location: Austria

PostPosted: Apr 10th, 2009, 11:29am    Post subject: Re: Simplifying SB installation Reply with quote

Brent it is much simpler.

Your zip already contains a SapientBoard folder, which in turn contains the SapientBoard.BAS

Rename the included SapientBoard folder to SapientBoard_project and instruct the user to unzip into the ProjectsRoot$ folder, that is all what is needed.

RB will immediately list the project.

That is how I added RunBoard and SapientBoard to my projects list.

You need to include the workingversion.xml file to make RB recognise the folder as a real project folder.
Code:

<projectWorkingVersion>
<name>SapientBoard</name>
<version>unversioned</version>
<fromVersion>unversioned</fromVersion>
<comment></comment>
<hasChanges>false</hasChanges>
<iconFullPath></iconFullPath>
<resources>
</resources>
<deployPath></deployPath>
</projectWorkingVersion>

_________________
Stefan

Any code I post can be freely used, just give credit.
Back to top
View user's profile Send private message
Brent
Site Admin


Joined: 01 Jul 2005
Posts: 797

PostPosted: Apr 10th, 2009, 7:24pm    Post subject: Re: Simplifying SB installation Reply with quote

Thanks a lot, Stefan. That sounds like a plan.

I hope to have this in v0.1.2 by the following weekend.

_________________
Brent
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Bay Six Software Forum Index -> SapientBoard All times are GMT
Page 1 of 1
Jump to:  
Quick Reply
Username:
Message:
   Shortcut keys: Alt+Q to activate, Alt+P to preview, Alt+S to submit
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Lo-Fi Version
Powered by phpBB © 2001, 2005 phpBB Group