It’s worth mentioning that adopt-into combined with snapcraftctl set-version is the way to do this going forward, because version-script is deprecated and will at the least raise a warning when building.
You added a new part called mypart which wasn’t necessary. Just add the snapcraftctl line to the override-build section in the wekan part, and make adopt-info: wekan then remove the mypart. I think @ogra was giving you generic advice about the placement of pieces in a yaml, rather than copy/pastable code.
It did build snap and upload to store, but snap store rejected because of these files, that AFAIK are deleted in snapcraft.yaml file. I did also try recursive delete of .swp files, but it did not work, those did still exists.
found potentially sensitive files in package: lib/node_modules/wekan/.build/bundle/programs/server/npm/node_modules/tar/lib/.mkdir.js.swp, lib/node_modules/wekan/.build/bundle/programs/server/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp, lib/node_modules/wekan/node_modules/tar/lib/.mkdir.js.swp lint-snap-v2_iffy_files
And Wekan release still has word dirty in it.
I did about 8 releases of Wekan today, trying to make it work in various ways.
I did have problems with deleting temporary .swp files with those newer version codes, build service did not accept Wekan package at all, so I had to go back to original version script and remove from command --dirty to get Wekan released.
Is there some reason there is plans to remove support for version script? Could it still be kept? I would like to still have version detection working, and to be able to release new Snap packages. It has taken countless of hours to get build service even to accept Wekan package at all. Or can someone help with making required changes to snapcraft.yaml ?
Wekan also still uses core-16. I was not able to get core-18 working at all with snap. Is it possible that someone would help with getting core-18 version of script working?
Can also someone help make Wekan snap for other CPU architectures? For that, Wekan source bundle is made like in current snapcraft.yaml on x64, then that bundle that is also at https://releases.wekan.team as wekan-3.xx.zip is on other CPU architecture unzipped and run npm install commands as described at bundle section of page https://github.com/wekan/wekan/wiki/Platforms .