summaryrefslogtreecommitdiffstats
path: root/upload_to_mega.js
diff options
context:
space:
mode:
authorarchshift <gh@archshift.com>2015-03-07 00:54:09 +0100
committerarchshift <gh@archshift.com>2015-03-17 02:09:20 +0100
commit6cc1a0723583817d1c1bad13db5167c07aa84aa2 (patch)
treeb4fd54fd6347e6d114819536bfd7fe8f95c68ecc /upload_to_mega.js
parentMerge pull request #629 from archshift/lcdfb (diff)
downloadyuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar
yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.gz
yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.bz2
yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.lz
yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.xz
yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.zst
yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.zip
Diffstat (limited to 'upload_to_mega.js')
-rw-r--r--upload_to_mega.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/upload_to_mega.js b/upload_to_mega.js
deleted file mode 100644
index c0abd5ed5..000000000
--- a/upload_to_mega.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var util = require('util');
-var exec = require('child_process').exec;
-var sanitize = require("sanitize-filename");
-
-var email = process.env.MEGA_EMAIL;
-var password = process.env.MEGA_PASSWORD;
-var sourceFileName = 'build.7z';
-var dstFileName = process.env.APPVEYOR_REPO_COMMIT.substring(0, 8) + " - " +
- process.env.APPVEYOR_REPO_COMMIT_MESSAGE.substring(0, 100) + ".7z";
-dstFileName = sanitize(dstFileName);
-
-var cmd = util.format('megaput ../%s --path \"/Root/Citra/Windows/%s\" --username=%s --password=%s --no-progress',
- sourceFileName,
- dstFileName,
- email,
- password);
-
-// only upload build on master branch, and not on other branches or PRs
-if (process.env.APPVEYOR_REPO_BRANCH == "master") {
- console.log("Uploading file " + dstFileName + " to Mega...");
- exec(cmd, function(error, stdout, stderr) {
- console.log('stdout: ' + stdout);
- console.log('stderr: ' + stderr);
- if (error !== null) {
- console.log('exec error: ' + error);
- }
- });
-}