Updated
On this page
Swift release target using a VERSION file as the source of truth, with tag-based publishing since SPM resolves packages by git tag directly.
#rlsbl.targets.swift
#rlsbl.targets.swift
Swift release target using a VERSION file as the source of truth, with tag-based publishing since SPM resolves packages by git tag directly.
#SwiftTarget
Release target for Swift packages (Package.swift + VERSION file).
#name
def name(self)#read_name
def read_name(self, dir_path, ctx)Extract name from Package.swift.
#read_version
def read_version(self, dir_path)Read version from the VERSION file.
#write_version
def write_version(self, dir_path, version, ctx)Write the new version to the VERSION file atomically.
Returns a list of relative file paths that were modified.
#version_file
def version_file(self, dir_path=None)#tag_format
def tag_format(self, version)#template_dir
def template_dir(self)#template_vars
def template_vars(self, dir_path, ctx)Extract template variables from Package.swift.
#template_mappings
def template_mappings(self, ctx)#check_project_exists
def check_project_exists(self, dir_path)#get_project_init_hint
def get_project_init_hint(self)#dev_install_command
def dev_install_command(self, project_dir)