Rename binary

This commit is contained in:
Gabriel Augendre 2020-07-05 15:42:52 +02:00
parent 2931f7039e
commit 29fdc41817
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 8 additions and 7 deletions

View file

@ -6,10 +6,10 @@ build:
swift build -c release --disable-sandbox swift build -c release --disable-sandbox
install: build install: build
install ".build/release/aerc-contacts-cli" "$(bindir)" install ".build/release/aerc-contacts" "$(bindir)"
uninstall: uninstall:
rm -rf "$(bindir)/aerc-contacts-cli" rm -rf "$(bindir)/aerc-contacts"
clean: clean:
rm -rf .build rm -rf .build

View file

@ -4,12 +4,12 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "aerc-contacts-cli", name: "aerc-contacts",
products: [ products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages. // Products define the executables and libraries produced by a package, and make them visible to other packages.
.library( .library(
name: "aerc-contacts-cli", name: "aerc-contacts",
targets: ["aerc-contacts-cli"]), targets: ["aerc-contacts"]),
], ],
dependencies: [ dependencies: [
// Dependencies declare other packages that this package depends on. // Dependencies declare other packages that this package depends on.
@ -19,7 +19,8 @@ let package = Package(
// Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target( .target(
name: "aerc-contacts-cli", name: "aerc-contacts",
dependencies: []), dependencies: [],
path: "Sources/aerc-contacts-cli"),
] ]
) )