12114:demo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
12114:demo [2024/04/15 03:54 UTC] – created mwolfe12114:demo [2024/04/15 04:05 UTC] – [Download and Save Sample Code] mwolfe
Line 1: Line 1:
 ====== Demo Script: DevCon 2024 ====== ====== Demo Script: DevCon 2024 ======
  
-Create repo: ''M:\Repos\NLS\DevCon2024\.hg\'' +===== Download and Save Sample Code =====
- +
-Open twinBASIC > **Sample 4** +
- +
-{{:gb:fb:pasted:20240410-015035.png}} +
- +
-Save as: ''M:\Repos\NLS\DevCon2024\DevCon2024.twinproj'' (in repository folder) +
- +
-Ignore ''*.twinproj'' files in repository: +
- +
-<file text .hgignore> +
-syntax: glob +
-*.twinproj +
-</file> +
- +
-===== Set Export Path for Version Control ===== +
- +
-  - Ensure a clean repository with initial commit of .hgignore +
-  - **Project** > **Project Settings...** +
-  - Search for "export" +
-  - Check box next to "[√] Project: Export Path" +
-  - Enter text: ''${SourcePath}\Source'' +
-    * //This will save the twinBASIC source files to a subfolder named "Source" in the same folder as the .twinproj file itself// +
-  - Check box next to "[√] Project: Export After Save" and set value in dropdown to **Yes** +
-  - Click [Save Changes] +
-  - **File** > **Export Project...** to force an initial export +
-  - In TortoiseHg, commit with the following message: ''initial export from twinBASIC IDE'' +
-    * The commit will include over 1,000 files; this is expected +
-    * Most of the committed files come from referenced packages; that's ok +
-    * [[nls>access-version-control-my-philosophy|Remember]], "Anything that can lead to a bug in our software belongs in version control." +
- +
-===== Test Build From Source in Empty Folder ===== +
- +
-  - Create a new folder: ''%tmp%\DevConClone\'' +
-  - Clone the repository into this folder:  ''<nowiki>hg clone --verbose ssh://opal//home/gb/repos/devcon2024/ "C:\Users\Mike\AppData\Local\Temp\DevConClone"</nowiki>'' +
-  - Open a new instance of twinBASIC +
-  - In the _| New |_ tab, click [Import from folder...] then [Open] +
-  - Enter folder name: ''%tmp%\DevConClone\Source'' then [OK] +
-  - **File** > **Save Project As...** > ''%tmp%\DevConClone\DevCon2024.twinproj'' > [Save] +
-  - Make any small change to a project file +
-  - Save the project +
-  - Commit the change and push to Opalstack +
- +
-   +
-===== Test Build From Source for an Existing Project ===== +
- +
-The twinBASIC IDE appears to currently lack a "Build from Source" method that will overwrite the current .twinproj file with the contents of the "Project: Export Path" setting.  As a result, we must use this multi-step workaround: +
- +
-  - In the original repository (''M:\Repos\NLS\DevCon2024''), pull changes from Opalstack +
-  - Open a new twinBASIC instance OR go to **File** > **New Project...** +
-  - In the _| New |_ tab, click [Import from folder...] then [Open] +
-  - For folder, enter ''M:\Repos\NLS\DevCon2024\Source'' then click [OK] +
-  - Go to **File** > **Save As...** +
-  - Save project as ''M:\Repos\NLS\DevCon2024\DevCon2024.twinproj'' +
-  - Click [Yes] when asked to replace the existing file +
-  - Confirm that the project successfully built from source: +
-    - Go to **File** > **Export Project...** to force a full export of the source files +
-    - Verify that new "Last Modified" dates have been created in ''M:\Repos\NLS\DevCon2024\Source\'' +
-    - Verify that there are no pending changes in the repository+
  
 +  - Download [[https://github.com/twinbasic/twinbasic/releases/tag/beta-x-0504|twinBASIC BETA 504]]
 +  - Extract from Zip folder
 +  - Open twinBASIC > **Sample 4**
 +  - Enter Project Name: ''Demo 2024'' (//Leave all other options at their defaults//)
 +  - Save as: ''%tmp%\Demo2024\Demo2024.twinproj''
 +    - Navigate to: ''%tmp%''
 +    - Create folder named: ''Demo2024''
 +    - Filename: ''Demo2024.twinproj''
  
 ===== Create the Tool Window Controls ===== ===== Create the Tool Window Controls =====
  • 12114/demo.txt
  • Last modified: 2024/04/15 19:11 UTC
  • by mike