Skip to content

Commit

Permalink
Updated file location for SPM sources
Browse files Browse the repository at this point in the history
  • Loading branch information
zac committed May 13, 2021
1 parent 4d50554 commit 57701fb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SwiftUIcon",
products: [
.library(
name: "SwiftUIcon",
targets: ["SwiftUIcon"]),
],
dependencies: [
.library(name: "SwiftUIcon", targets: ["SwiftUIcon"]),
],
dependencies: [],
targets: [
.target(
name: "SwiftUIcon",
dependencies: [],
path: "Icon"),
exclude: [
"main.swift",
"IconGenerator.swift"
],
sources: ["Icon+PreviewHelpers.swift"]
),
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ trap "rm -f $TMPFILE" EXIT

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

HELPER="$SCRIPT_DIR/Icon/Icon+PreviewHelpers.swift"
GENERATOR="$SCRIPT_DIR/IconGenerator/IconGenerator.swift"
MAIN="$SCRIPT_DIR/IconGenerator/main.swift"
HELPER="$SCRIPT_DIR/Sources/SwiftUIcon/Icon+PreviewHelpers.swift"
GENERATOR="$SCRIPT_DIR/Sources/SwiftUIcon/IconGenerator.swift"
MAIN="$SCRIPT_DIR/Sources/SwiftUIcon/main.swift"

# Concatenate all files and remove import that is most likely in the input file
cat $SCRIPT_INPUT_FILE_0 $HELPER $GENERATOR $MAIN | grep -v "import\sSwiftUIcon" > $TMPFILE
Expand Down

0 comments on commit 57701fb

Please sign in to comment.