diff --git a/.gitignore b/.gitignore index 3b099ac..18eb50c 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ build/ default.profraw releases/ xcuserdata +Sources/MasKit/Package.swift diff --git a/Sources/MasKit/SupportingFiles/Package.swift b/Sources/MasKit/SupportingFiles/Package.swift deleted file mode 100644 index 9014cdb..0000000 --- a/Sources/MasKit/SupportingFiles/Package.swift +++ /dev/null @@ -1,4 +0,0 @@ -// Generated by: script/version -enum Package { - static let Version = "1.8.1" -} diff --git a/script/bootstrap b/script/bootstrap index a0e34f5..d4e3aec 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -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 diff --git a/script/version b/script/version index f97314c..b2372d9 100755 --- a/script/version +++ b/script/version @@ -13,7 +13,8 @@ VERSION=$(git describe --abbrev=0 --tags) VERSION=${VERSION#v} SCRIPT_PATH=$(dirname $(which $0)) -cat <"${SCRIPT_PATH}/../Sources/MasKit/SupportingFiles/Package.swift" + +cat <"${SCRIPT_PATH}/../Sources/MasKit/Package.swift" // Generated by: script/version enum Package { static let Version = "${VERSION}"