--- /dev/null
+git pull
+cargo build --release
+
+$destination=$args[0]
+
+if (!(Test-Path -Path $destination)) {
+ New-Item -ItemType directory -Path $destination
+}
+
+Copy-Item target/release/rup -Destination $destination
+Copy-Item key.secret -Destination $destination
+Copy-Item conf.ron -Destination $destination
+Copy-Item static -Destination $destination -Recurse -Force
+
.expect(&format!("Failed to read key file: {}", consts::FILE_KEY));
String::from(
- percent_encoding::percent_decode(key.as_bytes())
+ percent_encoding::percent_decode(key.replace('\n', "").as_bytes())
.decode_utf8()
.expect(&format!("Failed to decode key file: {}", consts::FILE_KEY))
)