Browse Source

add revision # to packaged zip file

main
Colin McMillen 10 months ago
parent
commit
3e4bd73091
  1. 3
      package_debug_zip.sh

3
package_debug_zip.sh

@ -1,3 +1,4 @@
#!/bin/sh
mkdir Totte && cp -r bin/Debug/net7.0/* Totte/ && zip -r totte.zip Totte/ && rm -rf Totte
revision=r$(git log | egrep "^commit [0-9a-f]{40}$" | wc -l)
mkdir totte-$revision && cp -r bin/Debug/net7.0/* totte-$revision/ && zip -r totte-$revision.zip totte-$revision/ && rm -rf totte-$revision
Loading…
Cancel
Save