Skip to content

Commit

Permalink
fix release folder (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
SalehAlbuga committed May 30, 2020
1 parent 8422b29 commit e9f0aa4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Sources/AzureFunctions/CodeGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ internal struct CodeGen {
let workerFile = try swiftFolder.createFile(named: "worker.config.json")
try workerFile.write(workerRes)

#if os(Linux)
let releaseFolder = "x86_64-unknown-linux"
#else
let releaseFolder = "x86_64-apple-macosx"
#endif

try File.init(path: "\(sourceDir)/.build/\(releaseFolder)/release/functions").copy(to: swiftFolder)
try File.init(path: "\(sourceDir)/.build/release/functions").copy(to: swiftFolder)


for file in try Folder(path: "\(sourceDir)/Sources/\(projectName)/functions").files {
Expand Down

0 comments on commit e9f0aa4

Please sign in to comment.