mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 04:50:24 +00:00
4848f422d6
Fixes #364.
24 lines
478 B
Bash
Executable file
24 lines
478 B
Bash
Executable file
#!/bin/bash -e
|
|
#
|
|
# script/version
|
|
# mas
|
|
#
|
|
# Displays the current marketing version of mas.
|
|
#
|
|
|
|
# This no longer works with MARKETING_VERSION build setting in Info.plist
|
|
# agvtool what-marketing-version -terse1
|
|
|
|
VERSION=$(git describe --abbrev=0 --tags)
|
|
VERSION=${VERSION#v}
|
|
|
|
SCRIPT_PATH=$(dirname $(which $0))
|
|
|
|
cat <<EOF >"${SCRIPT_PATH}/../Sources/MasKit/Package.swift"
|
|
// Generated by: script/version
|
|
enum Package {
|
|
static let version = "${VERSION}"
|
|
}
|
|
EOF
|
|
|
|
echo ${VERSION}
|