|
|
|
@ -8,23 +8,6 @@ const path = require("path");
|
|
|
|
|
const deleteEmpty = require("delete-empty");
|
|
|
|
|
const execSync = require("child_process").execSync;
|
|
|
|
|
|
|
|
|
|
const lfsOutput = execSync("git lfs install", { encoding: "utf-8" });
|
|
|
|
|
if (!lfsOutput.toLowerCase().includes("git lfs initialized")) {
|
|
|
|
|
console.error(`
|
|
|
|
|
Git LFS is not installed, unable to build.
|
|
|
|
|
|
|
|
|
|
To install Git LFS on Linux:
|
|
|
|
|
- Arch:
|
|
|
|
|
sudo pacman -S git-lfs
|
|
|
|
|
- Debian/Ubuntu:
|
|
|
|
|
sudo apt install git-lfs
|
|
|
|
|
|
|
|
|
|
For other systems, see:
|
|
|
|
|
https://github.com/git-lfs/git-lfs/wiki/Installation
|
|
|
|
|
`);
|
|
|
|
|
process.exit(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Load other plugins dynamically
|
|
|
|
|
const $ = require("gulp-load-plugins")({
|
|
|
|
|
scope: ["devDependencies"],
|
|
|
|
@ -44,8 +27,8 @@ const envVars = [
|
|
|
|
|
"SHAPEZ_CLI_LIVE_FTP_PW",
|
|
|
|
|
"SHAPEZ_CLI_APPLE_ID",
|
|
|
|
|
"SHAPEZ_CLI_APPLE_CERT_NAME",
|
|
|
|
|
"SHAPEZ_CLI_GITHUB_USER",
|
|
|
|
|
"SHAPEZ_CLI_GITHUB_TOKEN",
|
|
|
|
|
"SHAPEZ_CLI_GITHUB_USER",
|
|
|
|
|
"SHAPEZ_CLI_GITHUB_TOKEN",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < envVars.length; ++i) {
|
|
|
|
@ -82,9 +65,9 @@ docs.gulptasksDocs($, gulp, buildFolder);
|
|
|
|
|
const standalone = require("./standalone");
|
|
|
|
|
standalone.gulptasksStandalone($, gulp, buildFolder);
|
|
|
|
|
|
|
|
|
|
const releaseUploader = require("./release-uploader");
|
|
|
|
|
releaseUploader.gulptasksReleaseUploader($, gulp, buildFolder);
|
|
|
|
|
|
|
|
|
|
const releaseUploader = require("./release-uploader");
|
|
|
|
|
releaseUploader.gulptasksReleaseUploader($, gulp, buildFolder);
|
|
|
|
|
|
|
|
|
|
const translations = require("./translations");
|
|
|
|
|
translations.gulptasksTranslations($, gulp, buildFolder);
|
|
|
|
|
|
|
|
|
@ -306,17 +289,17 @@ gulp.task(
|
|
|
|
|
gulp.series("utils.cleanup", "step.standalone-prod.all", "step.postbuild")
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// OS X build and release upload
|
|
|
|
|
gulp.task(
|
|
|
|
|
"build.darwin64-prod",
|
|
|
|
|
gulp.series(
|
|
|
|
|
"build.standalone-prod",
|
|
|
|
|
"standalone.prepare",
|
|
|
|
|
"standalone.package.prod.darwin64",
|
|
|
|
|
"standalone.uploadRelease.darwin64"
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// OS X build and release upload
|
|
|
|
|
gulp.task(
|
|
|
|
|
"build.darwin64-prod",
|
|
|
|
|
gulp.series(
|
|
|
|
|
"build.standalone-prod",
|
|
|
|
|
"standalone.prepare",
|
|
|
|
|
"standalone.package.prod.darwin64",
|
|
|
|
|
"standalone.uploadRelease.darwin64"
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Deploying!
|
|
|
|
|
gulp.task(
|
|
|
|
|
"main.deploy.alpha",
|
|
|
|
|