[Vm-dev] VM Maker: VMMakerUI-mt.58.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Dec 30 16:20:50 UTC 2022

Marcel Taeumel uploaded a new version of VMMakerUI to project VM Maker:

==================== Summary ====================

Name: VMMakerUI-mt.58
Author: mt
Time: 30 December 2022, 5:20:49.348292 pm
UUID: 64d8c055-a06a-d94e-a757-295b4d9a99f2
Ancestors: VMMakerUI-mt.57

Fixes CI badges for "Update VMMaker" dialog.

=============== Diff against VMMakerUI-mt.57 ===============

Item was changed:
  ----- Method: TheWorldMainDockingBar>>osvm_GitHubActions_statusBadgeUrl: (in category '*VMMakerUI-updater') -----
+ osvm_GitHubActions_statusBadgeUrl: workflow
- osvm_GitHubActions_statusBadgeUrl: workflowName
+ 	^ 'https://raster.shields.io/github/actions/workflow/status/OpenSmalltalk/opensmalltalk-vm/{1}.yml?branch={2}&style=flat&logo=github&label='
+ 		format: {workflow encodeForHTTP. 'Cog'}!
- 	| id |
- 	id := workflowName encodeForHTTP.
- 	^ 'https://raster.shields.io/github/workflow/status/OpenSmalltalk/opensmalltalk-vm/{1}?style=flat&logo=github&label='
- 		format: {id}!

Item was changed:
  ----- Method: TheWorldMainDockingBar>>updateVMMaker (in category '*VMMakerUI-updater') -----
  	<updater: 'Update VMMaker'>
  	| updater history message |
  	updater := MCMcmUpdater
  		updateMapNamed: 'update.oscog'
  		repository: 'http://source.squeak.org/VMMaker'.
  	updater lastUpdateMap ifEmpty: [
  		"If this is the first time that you use the updater, start at 5.mcm to avoid loading old code."
  		updater lastUpdateMap at: updater repository put: 5].
  	history := updater dependentPackages
  		collect: [:package | package name -> (package workingCopy ancestors
  			"N.B. the first version in a package's history will have empty ancestors."
  			ifEmpty: [nil] ifNotEmpty: [:ancestors| ancestors first])]
  		as: OrderedDictionary.
  	updater doUpdate: false.
  	"Set update history to the packages that actually changed."
  	updater dependentPackages do: [:package | | oldVersionInfo newVersionInfo |
  		oldVersionInfo := history at: package name ifAbsent: [].
  		newVersionInfo := package workingCopy ancestors first.
  		(oldVersionInfo ifNil: [0] ifNotNil: [oldVersionInfo versionNumber]) < newVersionInfo versionNumber
  			ifTrue: [history at: package name put: {oldVersionInfo. newVersionInfo}]
  			ifFalse: [history removeKey: package name]].
  	"Prepare message, including the update history and OSVM ci badges."
  	message := String streamContents: [:s |
  		s nextPutAll: 'VMMaker update succesful.<br><br>'.
  			ifEmpty: [s nextPutAll: 'All packages were already up-to-date.']
  			ifNotEmpty: [s nextPutAll: 'Updated packages:'].
  		history keysAndValuesDo: [:packageName :updateInfo |
  			s nextPutAll: '<br> - '.
  			s nextPutAll: packageName; space.
  			updateInfo isArray
  				ifFalse: [s nextPutAll: '*removed*' translated]
  				ifTrue: [
  					updateInfo first
  						ifNil: [s nextPutAll: '*added*' translated]
  						ifNotNil: [s print: updateInfo first versionNumber].
  					s nextPutAll: ' -> <b>'.
  					s print: updateInfo second versionNumber.
  					s nextPutAll: '</b>']].
  		s nextPutAll: ('<br><br>Url: <a href="{1}">{1}</a>' format: {updater repository}).
  		s nextPutAll: '<br>Map: '; print: updater updateMapName.
  		s nextPutAll: '<br>'.
+ 		#('macOS (x86)' macos
+ 		'macOS (ARM)' 'macos-arm'
+ 		'Windows' win
+ 		'Linux (x86)' linux
+ 		'Linux (ARM)' 'linux-arm')
+ 			groupsDo: [:label :workflow |
- 		#('macOS (x86)' macos 'Build for macOS'
- 		'macOS (ARM)' 'macos-arm' 'Build for macOS (ARM)'
- 		'Windows' win 'Build for Windows'
- 		'Linux (x86)' linux 'Build for Linux (x86)'
- 		'Linux (ARM)' 'linux-arm' 'Build for Linux (ARM)')
- 			groupsDo: [:label :workflow :workflowName |
  				s nextPutAll: ('<br><a href="{2}"><img src="{3}" /> {4}</a> {1}'
  					format: {
  						self osvm_GitHubActions_statusPageUrl: workflow.
+ 						self osvm_GitHubActions_statusBadgeUrl: workflow.
- 						self osvm_GitHubActions_statusBadgeUrl: workflowName.
  						self osvm_GitHubActions_statusTimestamp: workflow})].
  		s nextPutAll: ('<br><br>Note that updated platform sources might be available, too: <a href="{1}">{1}</a>' format: {'https://github.com/OpenSmalltalk/opensmalltalk-vm'}).
  	self inform: message asTextFromHtml.!

More information about the Vm-dev mailing list