mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Remove git lfs install from gulpfile (#731)
This commit is contained in:
parent
83c4552f9c
commit
56ca6b40c5
@ -8,23 +8,6 @@ const path = require("path");
|
|||||||
const deleteEmpty = require("delete-empty");
|
const deleteEmpty = require("delete-empty");
|
||||||
const execSync = require("child_process").execSync;
|
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
|
// Load other plugins dynamically
|
||||||
const $ = require("gulp-load-plugins")({
|
const $ = require("gulp-load-plugins")({
|
||||||
scope: ["devDependencies"],
|
scope: ["devDependencies"],
|
||||||
@ -44,8 +27,8 @@ const envVars = [
|
|||||||
"SHAPEZ_CLI_LIVE_FTP_PW",
|
"SHAPEZ_CLI_LIVE_FTP_PW",
|
||||||
"SHAPEZ_CLI_APPLE_ID",
|
"SHAPEZ_CLI_APPLE_ID",
|
||||||
"SHAPEZ_CLI_APPLE_CERT_NAME",
|
"SHAPEZ_CLI_APPLE_CERT_NAME",
|
||||||
"SHAPEZ_CLI_GITHUB_USER",
|
"SHAPEZ_CLI_GITHUB_USER",
|
||||||
"SHAPEZ_CLI_GITHUB_TOKEN",
|
"SHAPEZ_CLI_GITHUB_TOKEN",
|
||||||
];
|
];
|
||||||
|
|
||||||
for (let i = 0; i < envVars.length; ++i) {
|
for (let i = 0; i < envVars.length; ++i) {
|
||||||
@ -82,9 +65,9 @@ docs.gulptasksDocs($, gulp, buildFolder);
|
|||||||
const standalone = require("./standalone");
|
const standalone = require("./standalone");
|
||||||
standalone.gulptasksStandalone($, gulp, buildFolder);
|
standalone.gulptasksStandalone($, gulp, buildFolder);
|
||||||
|
|
||||||
const releaseUploader = require("./release-uploader");
|
const releaseUploader = require("./release-uploader");
|
||||||
releaseUploader.gulptasksReleaseUploader($, gulp, buildFolder);
|
releaseUploader.gulptasksReleaseUploader($, gulp, buildFolder);
|
||||||
|
|
||||||
const translations = require("./translations");
|
const translations = require("./translations");
|
||||||
translations.gulptasksTranslations($, gulp, buildFolder);
|
translations.gulptasksTranslations($, gulp, buildFolder);
|
||||||
|
|
||||||
@ -306,17 +289,17 @@ gulp.task(
|
|||||||
gulp.series("utils.cleanup", "step.standalone-prod.all", "step.postbuild")
|
gulp.series("utils.cleanup", "step.standalone-prod.all", "step.postbuild")
|
||||||
);
|
);
|
||||||
|
|
||||||
// OS X build and release upload
|
// OS X build and release upload
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"build.darwin64-prod",
|
"build.darwin64-prod",
|
||||||
gulp.series(
|
gulp.series(
|
||||||
"build.standalone-prod",
|
"build.standalone-prod",
|
||||||
"standalone.prepare",
|
"standalone.prepare",
|
||||||
"standalone.package.prod.darwin64",
|
"standalone.package.prod.darwin64",
|
||||||
"standalone.uploadRelease.darwin64"
|
"standalone.uploadRelease.darwin64"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Deploying!
|
// Deploying!
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"main.deploy.alpha",
|
"main.deploy.alpha",
|
||||||
|
Loading…
Reference in New Issue
Block a user