mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 12:33:08 +00:00
♻️ Remove generated source file
This commit is contained in:
parent
688900f4e8
commit
5a2d7717c9
4 changed files with 6 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -36,3 +36,4 @@ build/
|
|||
default.profraw
|
||||
releases/
|
||||
xcuserdata
|
||||
Sources/MasKit/Package.swift
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
// Generated by: script/version
|
||||
enum Package {
|
||||
static let Version = "1.8.1"
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue