♻️ Remove generated source file

This commit is contained in:
Chris Araman 2021-04-28 22:56:34 -07:00
parent 688900f4e8
commit 5a2d7717c9
No known key found for this signature in database
GPG key ID: BB4499D9E11B61E0
4 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View file

@ -36,3 +36,4 @@ build/
default.profraw
releases/
xcuserdata
Sources/MasKit/Package.swift

View file

@ -1,4 +0,0 @@
// Generated by: script/version
enum Package {
static let Version = "1.8.1"
}

View file

@ -17,6 +17,9 @@ main() {
# Install Homebrew tools
rm -f Brewfile.lock.json
brew bundle install --no-upgrade --verbose
# Generate Package.swift
script/version
}
main

View file

@ -13,7 +13,8 @@ VERSION=$(git describe --abbrev=0 --tags)
VERSION=${VERSION#v}
SCRIPT_PATH=$(dirname $(which $0))
cat <<EOF >"${SCRIPT_PATH}/../Sources/MasKit/SupportingFiles/Package.swift"
cat <<EOF >"${SCRIPT_PATH}/../Sources/MasKit/Package.swift"
// Generated by: script/version
enum Package {
static let Version = "${VERSION}"