distZip rename rootFolder and artifact

I learned the way from the post below to make Zip file and root folder have different name :

my zip file name is : sampleFile-1.0.0.ZIP
my root folder name is: sampleFile
The problem is : Since i set the archiveName to sampleFile, artifact is looking for sampleFile instead of “sampleFile-1.0.0.ZIP”, how shall i handle this case?

configurations {

artifacts {
  dist distZip

distZip {
  archiveName "sampleFile"

  doLast {
    String zipFinalPath = $destinationDir + baseName + '.zip'