File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 32
32
uses : actions/upload-artifact@v2
33
33
if : matrix.os == 'ubuntu-latest'
34
34
with :
35
- name : image
35
+ name : Babylonian-trunk.zip
36
36
path : ./deploy/Babylonian-trunk.zip
37
+ - name : Upload Image
38
+ uses : actions/upload-artifact@v2
39
+ if : matrix.os == 'ubuntu-latest'
40
+ with :
41
+ name : screenshot
42
+ path : ./deploy/screenshot-for-readme.png
Original file line number Diff line number Diff line change
1
+ | browserWindow |
1
2
FileStream startUp: true .
2
3
TranscriptStream redirectToStdOut: true .
3
4
Deprecation showDeprecationWarnings: false .
@@ -25,7 +26,13 @@ PluggableSystemWindow allInstances do: #abandon.
25
26
PreferenceWizardMorph allInstances do: #abandon .
26
27
SystemBrowser default: BPBrowser .
27
28
28
- ((Smalltalk at: #BPFancyMorph )>> #initialize ) browse.
29
+
30
+ " Take a screenshot"
31
+ browserWindow := (ToolSet default browse: (Smalltalk at: #BPSearchCollection ) selector: #binarySearch: ) containingWindow.
32
+ browserWindow extent: 891 @806 .
33
+ (browserWindow submorphsSatisfying: [:m | (m isKindOf: ProportionalSplitterMorph ) and : [m width > m height]]) first repositionBy: 0 @(- 100 ).
34
+ browserWindow topLeft: 30 @30 .
35
+ browserWindow exportAsPNGNamed: ' screenshot-for-readme.png' .
29
36
30
37
TranscriptStream redirectToStdOut: false .
31
38
Deprecation suppressed: false .
You can’t perform that action at this time.
0 commit comments