 |
Bay Six Software Beyond the Basics
|
View previous topic :: View next topic |
Author |
Message |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Apr 9th, 2009, 9:55pm Post subject: Simplifying SB installation |
|
|
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.- Unzip the downloaded file to the "projects" folder, creating the "SapientBoard_project" subfolder.
- Start the RB IDE in a web browser.
- Create a new project and give it a name of your choosing.
- 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 |
Publish the newly created project. _________________ Brent |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Apr 10th, 2009, 4:03am Post subject: Re: Simplifying SB installation |
|
|
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 |
|
 |
STPendl Full Member
Joined: 20 Aug 2007 Posts: 161 Location: Austria
|
Posted: Apr 10th, 2009, 11:29am Post subject: Re: Simplifying SB installation |
|
|
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 |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: Apr 10th, 2009, 7:24pm Post subject: Re: Simplifying SB installation |
|
|
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 |
|
 |
|
|
|
|
|
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
|
|