firefly-compiler 0.4.49 → 0.4.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/Release.ff +5 -6
- package/package.json +1 -1
- package/s3/S3.ff +1 -4
- package/vscode/package.json +1 -1
package/bin/Release.ff
CHANGED
|
@@ -47,15 +47,15 @@ releaseFireflyPackage(
|
|
|
47
47
|
secretAccessKey: String
|
|
48
48
|
packageName: String
|
|
49
49
|
): Unit {
|
|
50
|
+
system.writeLine("")
|
|
51
|
+
system.writeLine("Will release package: " + packageName)
|
|
50
52
|
let temporary = system.path("../" + packageName + "/.firefly/temporary")
|
|
51
53
|
if(!temporary.exists()) {temporary.createDirectory()}
|
|
52
54
|
let tarGz = temporary.slash("ff_" + packageName + "_0_0_0.tar.gz")
|
|
53
55
|
if(tarGz.exists()) {
|
|
54
56
|
tarGz.delete()
|
|
55
|
-
system.writeLine("Deleted " + tarGz.absolute())
|
|
56
57
|
}
|
|
57
58
|
internalMakeTarGz(tarGz, system.path("../" + packageName))
|
|
58
|
-
system.writeLine("Created " + tarGz.absolute())
|
|
59
59
|
S3.put(
|
|
60
60
|
system
|
|
61
61
|
accessKeyId
|
|
@@ -95,15 +95,14 @@ requireVsceLoggedIn(system: NodeSystem, workingDirectory: Path) {
|
|
|
95
95
|
run(system: NodeSystem, command: String, arguments: List[String], workingDirectory: Path): ProcessResult {
|
|
96
96
|
system.writeLine("")
|
|
97
97
|
system.writeLine(command + " " + arguments.join(" "))
|
|
98
|
-
|
|
99
|
-
system.writeBuffer(out.standardOut)
|
|
100
|
-
system.writeErrorBuffer(out.standardError)
|
|
101
|
-
out
|
|
98
|
+
system.execute(command, arguments, workingDirectory = Some(workingDirectory))
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
runSuccessful(system: NodeSystem, command: String, arguments: List[String], workingDirectory: Path): Buffer {
|
|
105
102
|
let out = run(system, command, arguments, workingDirectory)
|
|
106
103
|
if(out.exitCode != 0) {
|
|
104
|
+
system.writeBuffer(out.standardOut)
|
|
105
|
+
system.writeErrorBuffer(out.standardError)
|
|
107
106
|
system.writeErrorLine("Exit code: " + out.exitCode)
|
|
108
107
|
system.exit(1)
|
|
109
108
|
}
|
package/package.json
CHANGED
package/s3/S3.ff
CHANGED
|
@@ -23,10 +23,7 @@ put(
|
|
|
23
23
|
let allHeaders = [...canonicalHeaders, Pair("Authorization", authenticationHeader)]
|
|
24
24
|
|
|
25
25
|
let url = "https://" + host + "/" + encodedKey
|
|
26
|
-
|
|
27
|
-
system.writeLine("" + response.status())
|
|
28
|
-
system.writeLine(response.statusText())
|
|
29
|
-
//system.writeLine(response.readText())
|
|
26
|
+
system.httpClient().fetch(url, method = "PUT", headers = allHeaders, body = Some(HttpClient.bodyBuffer(body)), throw = True)
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
makeS3AuthorizationHeader(
|