fill_release_node.sh 330 B

123456789
  1. #!/usr/bin/env bash
  2. DATE=$(git log -1 --pretty=%cd --date=iso8601 --date=format:'%Y-%m-%d')
  3. sed -i -e "s/@DATE_PLACEHOLDER/${DATE}/" org.DolphinEmu.dolphin-emu.metainfo.xml
  4. VERSION=$(git describe --tags | sed -E 's/^([0-9]+-[0-9]+).*/\1/')
  5. sed -i -e "s/@VERSION_PLACEHOLDER/${VERSION}/" org.DolphinEmu.dolphin-emu.metainfo.xml