Skip to content

Commit cad1353

Browse files
authored
Update swiftly version to 1.0.0 and add upgrade routine for 0.4.0 (#237)
1 parent 7b773c7 commit cad1353

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Sources/Swiftly/Init.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ internal struct Init: SwiftlyCommand {
3737

3838
var config = try? Config.load()
3939

40-
if var config, !overwrite && config.version == SwiftlyVersion(major: 0, minor: 4, patch: 0, suffix: "dev") {
41-
// This is a simple upgrade from the 0.4.0-dev pre-release
40+
if var config, !overwrite &&
41+
(
42+
config.version == SwiftlyVersion(major: 0, minor: 4, patch: 0, suffix: "dev") ||
43+
config.version == SwiftlyVersion(major: 0, minor: 4, patch: 0)
44+
)
45+
{
46+
// This is a simple upgrade from the 0.4.0-dev pre-release, or 0.4.0 release
4247

4348
// Move our executable over to the correct place
4449
try Swiftly.currentPlatform.installSwiftlyBin()

Sources/SwiftlyCore/SwiftlyCore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public let version = SwiftlyVersion(major: 0, minor: 4, patch: 0)
3+
public let version = SwiftlyVersion(major: 1, minor: 0, patch: 0)
44

55
/// A separate home directory to use for testing purposes. This overrides swiftly's default
66
/// home directory location logic.

0 commit comments

Comments
 (0)