Of course, I forgot to attach the app .dat... they are now.. On Thu, Jul 5, 2018 at 5:07 PM Mariano Martinez Peck <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. SeasideHelloWorld.dat (206K) Download Attachment SeasideHelloWorldPackagingInstructionsApp.dat (222K) Download Attachment |
In reply to this post by jtuchel
Hi Joachim,
--
This should go without saying but just to be clear, one needs a good configuration map and working packaging instructions. I think the method below (a class side extension to #AbtXDSingleImagePackagingInstructions) does most of the work. There are of course other methods and class that do stuff and hold data. A lot of it is to make the entire process from packaging to zipping and renaming images and installable msi files (I use to use InstallShield, now it is Advanced Installer) with version numbers, easy for me. If you find something you don't get or want to know more about, just ask. The process pauses close to the end to give me a change to run Advanced Installer, then I let it continue to do the zipping and renaming. I end up with three files, a zip of the image, and msi file and a version log file. If little has changed (all the DLLs and such are the same) we just deliver the new image to the customer. I tell you this so that if you see something that doesn't look like packaging, you can probably ignore it because it isn't. If Instantiations is interested, I'm willing to share. It will take some work to refactor out the pure packaging part from the rest of my specific use case but I'm willing if they are. Good luck and have fun. Lou
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Mariano Martinez Peck-2
Hi Mariano,
-- Thank you very much for this. If time permits, I think I'm going to install the latest 9.1 ECAP on Windows and give this a try. Lou On Thursday, July 5, 2018 at 4:07:56 PM UTC-4, marianopeck wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
On Fri, Jul 6, 2018 at 10:49 AM Louis LaBrunda <[hidden email]> wrote:
Excellent! Let us know how it goes. BTW, as you know, you can do the same procedure but doing everything on Linux too. I mean, you can still create the Unix XD from within Linux. I put the Windows development image in the workflow because I thought it was the most comfortable. But both paths should work :)
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Louis LaBrunda
Louis, thanks for sharing. This is hilarious: it seems all I need is just a handful of method calls to make things happen automatically. Most of the magic seems to be #switchTo and teh configuration of the passive image. Can't believe I didn't find out myself ;-) The relevant part is mostly the first few lines until "devImage switchTo", anything after that is highly individual for projects. Our current process is highly efficient and involves a prepared "Master image" with a clean passive image for Linux and our Packaging instructions preloaded. The image is write-protected on the file system. All we need to do is fire it up (easy with Environments these days), load two config maps and click through the packaged image browser. It just takes 3 minutes to create our (ca 5.3 MB sized) production image, but automating it would be so much nicer. You still have to think at work, and I'd like to eliminate that ;-) Especially if we can also include the upload to the servers and stuff to make it a fully automated end-to-end solution. This will probably be my thing to look for for next Sunday afternoon ;-) Again: thanks a lot for sharing! Joachim Am Freitag, 6. Juli 2018 15:46:18 UTC+2 schrieb Louis LaBrunda:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Joachim,
-- On Tuesday, July 10, 2018 at 4:52:42 AM UTC-4, Joachim Tuchel wrote:
You are very welcome. Sometimes it is something so simple that our brains just skip over it.
I have some classes that hold information about the back end of the process, like what to zip together, how to rename things with version number in the name and where to put things, so I'm sure you can do the same to meet your needs. As I think I said, I add menu items to start the process, if you (or anyone) needs help with that I will dig it out.
Good luck. Lou P.S. Once I discovered configuration maps I was hooked. I have two (at least, especially for headless programs) configuration maps for each application (program) one for packaging and one for development. Defining the one for packaging is the hardest and most critical. Getting the section of required maps right is the trouble spot. First you need to have the prerequisites right. That is greatly helped by the Application Manager. I'm thinking that the prerequisite information can be used help define the required maps. I'm going to play with this over the next few days.
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Administrator
|
On Tuesday, July 10, 2018 at 6:23:40 AM UTC-7, Louis LaBrunda wrote:
--
Hi Lou, Can you clarify this a bit? When you describe two configuration maps, are they organized as superset and subset? i.e. does the development map have the application map as a required map and so it, by itself, only loads development tools and such? By the way, one can use abt.cnf for automating builds. It's a little tricky and I seemed to have purged my examples. :-( This is one of those areas I wish was controlled by a command line parameter rather than hard-coded. Perhaps one day, Seth and gang will improve that.
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
"By the way, one can use abt.cnf for automating builds. It's a little tricky and I seemed to have purged my examples. :-( This is one of those areas I wish was controlled by a command line parameter rather than hard-coded. Perhaps one day, Seth and gang will improve that." - Seems reasonable...I'll make a case for 9.2 backlog -- Seth On Wednesday, July 11, 2018 at 1:52:11 PM UTC-4, Richard Sargent wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Richard Sargent
Hi Richard,
-- I'm snipping a lot of the previous posts out, in the hope that it makes this less confusing, snip...
Yes, all the development maps have their application map as a required map. As I map have said somewhere, I often hose images during testing, so I want an easy way to start with a "clean image" barely more than the abt.icx image from Instantiations. I keep separate images for each program. There are applications that are shared amongst programs and therefor loaded into each image but that applications that define the program kind of own each image.
Interesting. Given my use of added menu items, I'm not sure it would save me much. Below is the code snippet I have been playing with to aid in the making of the "Required Maps" section of a configuration map. It is a bit of a hack and kinda slow but it is a start at what I am trying to do. You enter the applications you want to load with the map first. To try it, replace "mapName := #KscNonVisual." with the name of the map you are building and execute the code in a workspace. The code looks at the applications you want to load and gets their prerequisites, it then finds those applications in existing maps and then displays the required maps in the transcript. I haven't gotten to the point of trying to see if there are maps that load other maps and therefor could replace a number of required maps with one map. If this is helpful and can be perfected, I think it could be called via a menu item and maybe put the required maps right in the new map. Any ideas of how to make it better or whatever are welcome. Lou
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Administrator
|
On Wednesday, July 11, 2018 at 12:24:30 PM UTC-7, Louis LaBrunda wrote:
--
Good. That's what I thought (and expected!).
Yes. The use of abt.cnf is not for generating a configuration map, but automating building an image "from scratch" or using a CI tool for automatically packaging the application, running the test suite, etc. (That "CI tool" can be as simple as a scheduled batch job or even a one off command invocation.)
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi,
-- On Wednesday, July 11, 2018 at 3:54:25 PM UTC-4, Richard Sargent wrote:
I know, I meant I have menu items that build the image from scratch and package it. I just right click on the class and click the menu item (one for XD and one for GUI).
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Louis LaBrunda
Hi Everyone, Below is the latest version of my experiment. This one displays less in the Transcript and actually replaces the *Required Maps* so be careful. If you have required maps that you know are required (like your own maps) put them in the *Required Maps* section, then run this code (don't forget to replace the map name). You should also start with an image that has everything that you need loaded. The resultant *Required Maps* should keep your maps first. Any maps included by your starter *Required Maps* should not be duplicated by this new code. You may have to play with the order of the maps that are added. You do that by starting with a clean image with little loaded, then load the map with its required maps. Check the loading for errors that should show you that a map is being loaded too soon and move it down in the list. If anyone tries this, please let me know what you think. Lou
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Mariano Martinez Peck-2
Hi guys,
-- I know the thread diverged a bit to another topic but I wanted to paste some simplified steps of my former email that works with golden/official 9.1 release. It even also works now with both, 32 and 64 bitterness. ---------------------------------------------------------------------------------------------------- 1) On Windows, load Server Workbench and Seaside on a development image. You can script it: #( 'z.ST: Server Smalltalk (SST) - Seaside Testing' 'z.ST: Server Workbench, Base' ) do: [:each | (EmConfigurationMap editionsFor: each) first loadWithRequiredMaps ]. 2) Import and load latest version of SeasideHelloWorld and SeasideHelloWorldPackagingInstructionsApp. The former represents your domain-specific Seaside app (in this case a Hello World). The latter is one possible/easy way to package a Seaside application. It serves as an example and as starting point. This is mostly the only piece you may want to look deeper to adapt it for your own usage. 3) From the main menu, "XD" -> "New Image". Select the feature "Communications - TCP/IP". 4) Once inside the XD image, open configuration map browser and "Load with Required Maps" the map "zz.Server.AbtSstSeasideFeature" 5) In XD image, go to "Tools" -> "Browse Application Additions", and load latest version of SeasideHelloWorld. This step simulates what it would be loading your own Seaside app. 6) In XD go to "Tools" -> "Browse Packaged Images" and select the tab "Instructions In Database". You should see SeasideHelloWorldPackagingInstructionsApp. Double click to expand the tree and select AbtXDHelloWorldSeasidePackagingInstructions. 7) Follow the packaging workflow until the end. You should get a seasideHelloWorld.icx, SEASIDEHELLOWORLD.SNP, spusage.es, assocs.es and symbols.es all written. 8) Move all those files from your Windows to your Linux machine. 9) On Linux, be sure to have latest ECAP too and start XD image from a console like this (update bold paths and any other info you might need): export LANG=en_US.iso88591; export VAST_ROOT="/usr/local/VASmalltalk/9.1x64"; export LD_LIBRARY_PATH="${VAST_ROOT}/bin"; $LD_LIBRARY_PATH/es -no_break -msd -mcd -i/mnt/hgfs/Common/Development/Images/9.1x64-gold/seasideHelloWorld.icx -ini:${VAST_ROOT}/newimage/abt.ini 10) Open a web browser on http://localhost:8888/helloworld ----------------------------------------------------------------------------------------------------BTW, I got a Raspberry Pi Zero W, so it's on my to-do to try that out rather than the Linux Mint on my machine ;) On Thu, Jul 5, 2018 at 5:07 PM Mariano Martinez Peck <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Mariano,
-- Welcome back. I have a 32 bit and 64 bit VA 9.1 installed on my Windows machine. I moved the Seaside/Raspberry GPIO apps to the 32 bit system. On the 32 bit system I followed these instructions but the "Examine and Fix Problems" step has a ton of problems. I doubt they are normal but I decided to press on and not try to fix problems for an app I know nothing about. I moved the files to the Raspberry and followed the instructions to run it. That failed with what seemed like lots of errors, starting with a primitive not found in CfsOSTmPtr class>>#fetchPlatformTimeT. I'm going to take a look at the packaging instructions to see what I can learn. Have you taken a look at the script I posted that builds a config map? It could use some improvement in the area of the required maps. If there was a to reduce the number of required maps by using maps that contain combinations of other required maps that would be great. I think this could be done with a dictionary where the keys are app names and the values are the best map to use to load that app. I think this would be a valuable feature in general and not just for packaging. Lou On Tuesday, July 31, 2018 at 12:17:47 PM UTC-4, marianopeck wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Lou,
-- I'm pretty positive that you don't have the latests vm for raspberry pi...because I havn't built it yet and distributed it with an ECAP release. Therefore, the (what I believe to be 9.1 official) image is trying to call a vm primitive functions that doesn't exist in the vm. The solution is that I need to build you new virtual machines for PI that is at the same level as what got released for 9.1 official. A 9.2 ECAP probably isn't far off, but you can contact me offline and I'll just build you a 9.1 official version for PI I'm happy to do it for anyone else also until our first 9.2 ECAP comes out. -- Seth On Tuesday, July 31, 2018 at 4:04:43 PM UTC-4, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Louis LaBrunda
Hi Louis, Believe it or not, see attached picture. That's a LIVE picture from my desk :) You can realize that... when I was about to install Raspbian I noticed that NOOBS won't detect bluetooth keyboard and trackpad. I rescued a 10 years old USB mouse but I couldn't find any USB keyboard at my home hahahahha LOL. So I will try to reproduce my steps once I get the keyboard and Raspbian installed haha. BTW, this is a Zero W, so I don't even know if VA would work out of the box. I think you didn't try that Pi yet, right? As for the script, it's still on my to-do. It was just that I had a small gap on time available and I wanted to give it a try to the Pi. Cheers, On Tue, Jul 31, 2018, 17:04 Louis LaBrunda <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. 20180731_170746.jpg (4M) Download Attachment |
In reply to this post by Seth Berman
Hi Seth,
-- Thanks, for the info. Lou On Tuesday, July 31, 2018 at 4:10:41 PM UTC-4, Seth Berman wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Mariano Martinez Peck-2
Hi Mariano,
-- I have both a Raspberry 3 and the Zero W. I was playing with the Squeak version of the GPIO interface and my Seaside program on the Zero W. Lately I have being using the 3 to play with the VA Ecap, just because it is easier to use. I will give the Zero W and an old Raspberry Pi 1 a try with the Ecap when I get a chance. I have an old monitor, USB keyboard and mouse that I use but I have to switch them between the Raspberries. I cc'ed you off line in an email to Seth and mentioned WinSCP. It is helpful to use to move files from Windows. Lou On Tuesday, July 31, 2018 at 4:15:07 PM UTC-4, marianopeck wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |