2020-09-29 17:07:48 +00:00
|
|
|
require("colors");
|
2020-05-09 14:45:23 +00:00
|
|
|
const packager = require("electron-packager");
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
const pj = require("../electron/package.json");
|
2020-05-09 14:45:23 +00:00
|
|
|
const path = require("path");
|
2020-08-07 07:16:23 +00:00
|
|
|
const { getVersion } = require("./buildutils");
|
2020-05-09 14:45:23 +00:00
|
|
|
const fs = require("fs");
|
|
|
|
const fse = require("fs-extra");
|
2020-09-29 17:07:48 +00:00
|
|
|
const buildutils = require("./buildutils");
|
2020-05-09 14:45:23 +00:00
|
|
|
const execSync = require("child_process").execSync;
|
|
|
|
|
2020-08-07 07:16:23 +00:00
|
|
|
function gulptasksStandalone($, gulp) {
|
2020-06-17 13:10:14 +00:00
|
|
|
const electronBaseDir = path.join(__dirname, "..", "electron");
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
const targets = [
|
|
|
|
{
|
|
|
|
tempDestDir: path.join(__dirname, "..", "tmp_standalone_files"),
|
|
|
|
suffix: "",
|
2021-03-14 08:52:15 +00:00
|
|
|
taskPrefix: "",
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
},
|
2021-03-09 09:07:19 +00:00
|
|
|
{
|
|
|
|
tempDestDir: path.join(__dirname, "..", "tmp_standalone_files_china"),
|
|
|
|
suffix: "china",
|
|
|
|
taskPrefix: "china.",
|
|
|
|
},
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
for (const { tempDestDir, suffix, taskPrefix } of targets) {
|
2021-03-09 09:07:19 +00:00
|
|
|
const tempDestBuildDir = path.join(tempDestDir, "built");
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.prepare.cleanup", () => {
|
2021-03-14 08:52:15 +00:00
|
|
|
return gulp.src(tempDestDir, { read: false, allowEmpty: true }).pipe($.clean({ force: true }));
|
2021-03-09 09:07:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.prepare.copyPrefab", () => {
|
|
|
|
const requiredFiles = [
|
|
|
|
path.join(electronBaseDir, "node_modules", "**", "*.*"),
|
|
|
|
path.join(electronBaseDir, "node_modules", "**", ".*"),
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
path.join(electronBaseDir, "steam_appid.txt"),
|
2021-03-09 09:07:19 +00:00
|
|
|
path.join(electronBaseDir, "favicon*"),
|
|
|
|
|
|
|
|
// fails on platforms which support symlinks
|
|
|
|
// https://github.com/gulpjs/gulp/issues/1427
|
|
|
|
// path.join(electronBaseDir, "node_modules", "**", "*"),
|
|
|
|
];
|
2021-03-14 08:52:15 +00:00
|
|
|
return gulp.src(requiredFiles, { base: electronBaseDir }).pipe(gulp.dest(tempDestBuildDir));
|
2021-03-09 09:07:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.prepare.writePackageJson", cb => {
|
2021-03-14 08:52:15 +00:00
|
|
|
const packageJsonString = JSON.stringify(
|
|
|
|
{
|
|
|
|
scripts: {
|
|
|
|
start: pj.scripts.start,
|
|
|
|
},
|
|
|
|
devDependencies: pj.devDependencies,
|
|
|
|
dependencies: pj.dependencies,
|
|
|
|
optionalDependencies: pj.optionalDependencies,
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
},
|
2021-03-14 08:52:15 +00:00
|
|
|
null,
|
|
|
|
4
|
|
|
|
);
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
|
|
|
|
fs.writeFileSync(path.join(tempDestBuildDir, "package.json"), packageJsonString);
|
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
cb();
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.prepareVDF", cb => {
|
|
|
|
const hash = buildutils.getRevision();
|
|
|
|
|
|
|
|
const steampipeDir = path.join(__dirname, "steampipe", "scripts");
|
|
|
|
const templateContents = fs
|
|
|
|
.readFileSync(path.join(steampipeDir, "app.vdf.template"), { encoding: "utf-8" })
|
|
|
|
.toString();
|
|
|
|
|
|
|
|
const convertedContents = templateContents.replace("$DESC$", "Commit " + hash);
|
|
|
|
fs.writeFileSync(path.join(steampipeDir, "app.vdf"), convertedContents);
|
|
|
|
|
|
|
|
cb();
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.prepare.minifyCode", () => {
|
|
|
|
return gulp.src(path.join(electronBaseDir, "*.js")).pipe(gulp.dest(tempDestBuildDir));
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.prepare.copyGamefiles", () => {
|
2021-03-14 08:52:15 +00:00
|
|
|
return gulp.src("../build/**/*.*", { base: "../build" }).pipe(gulp.dest(tempDestBuildDir));
|
2021-03-09 09:07:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(taskPrefix + "standalone.killRunningInstances", cb => {
|
|
|
|
try {
|
|
|
|
execSync("taskkill /F /IM shapezio.exe");
|
|
|
|
} catch (ex) {
|
|
|
|
console.warn("Failed to kill running instances, maybe none are up.");
|
|
|
|
}
|
|
|
|
cb();
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task(
|
|
|
|
taskPrefix + "standalone.prepare",
|
|
|
|
gulp.series(
|
|
|
|
taskPrefix + "standalone.killRunningInstances",
|
|
|
|
taskPrefix + "standalone.prepare.cleanup",
|
|
|
|
taskPrefix + "standalone.prepare.copyPrefab",
|
|
|
|
taskPrefix + "standalone.prepare.writePackageJson",
|
|
|
|
taskPrefix + "standalone.prepare.minifyCode",
|
|
|
|
taskPrefix + "standalone.prepare.copyGamefiles"
|
2020-05-09 14:45:23 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {'win32'|'linux'} platform
|
|
|
|
* @param {'x64'|'ia32'} arch
|
|
|
|
* @param {function():void} cb
|
|
|
|
*/
|
|
|
|
function packageStandalone(platform, arch, cb) {
|
|
|
|
const tomlFile = fs.readFileSync(path.join(__dirname, ".itch.toml"));
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
const privateArtifactsPath = "node_modules/shapez.io-private-artifacts";
|
|
|
|
|
|
|
|
let asar;
|
|
|
|
if (fs.existsSync(path.join(tempDestBuildDir, privateArtifactsPath))) {
|
|
|
|
asar = { unpackDir: privateArtifactsPath };
|
|
|
|
} else {
|
|
|
|
asar = true;
|
|
|
|
}
|
2021-03-09 09:07:19 +00:00
|
|
|
|
|
|
|
packager({
|
|
|
|
dir: tempDestBuildDir,
|
|
|
|
appCopyright: "Tobias Springer",
|
|
|
|
appVersion: getVersion(),
|
|
|
|
buildVersion: "1.0.0",
|
|
|
|
arch,
|
|
|
|
platform,
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
asar: asar,
|
2021-03-09 09:07:19 +00:00
|
|
|
executableName: "shapezio",
|
|
|
|
icon: path.join(electronBaseDir, "favicon"),
|
|
|
|
name: "shapez.io-standalone" + suffix,
|
|
|
|
out: tempDestDir,
|
|
|
|
overwrite: true,
|
|
|
|
appBundleId: "io.shapez.standalone",
|
|
|
|
appCategoryType: "public.app-category.games",
|
|
|
|
}).then(
|
|
|
|
appPaths => {
|
|
|
|
console.log("Packages created:", appPaths);
|
|
|
|
appPaths.forEach(appPath => {
|
|
|
|
if (!fs.existsSync(appPath)) {
|
|
|
|
console.error("Bad app path gotten:", appPath);
|
|
|
|
return;
|
|
|
|
}
|
2020-09-27 21:14:43 +00:00
|
|
|
|
2020-07-06 13:29:17 +00:00
|
|
|
fs.writeFileSync(
|
2021-03-09 09:07:19 +00:00
|
|
|
path.join(appPath, "LICENSE"),
|
|
|
|
fs.readFileSync(path.join(__dirname, "..", "LICENSE"))
|
2020-07-06 13:29:17 +00:00
|
|
|
);
|
2020-07-06 13:08:17 +00:00
|
|
|
|
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation
* Add config.local.template.js and rm cached copy of config.local.js
* [WIP] Implement painting, cutting, rotating achievements (to log only)
* [WIP] Refactor achievements, jsdoc fixes, add npm script
- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts
* Add steam/greenworks IPC calls and optional private-artifact dependency
* Include private artifacts in standalone builds
* Uncomment appid include
* [WIP] Add steam overlay fix, add hash to artifact dependency
* Update electron, greenworks. Add task to add local config if not present
* Add more achievements, refactor achievement code
* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked
* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements
* Add achievements, ids. Update names, keys for consistency
* Add play time achievements
* [WIP] Add more achievements
* Add more achievements. Add bulk achievement check signal
* [WIP] Add achievements. Start savefile migration
* Add achievements. Add savefile migration
* Remove superfluous achievement stat
* Update lock files, fix merge conflict
2021-03-10 06:33:39 +00:00
|
|
|
fse.copySync(
|
|
|
|
path.join(tempDestBuildDir, "steam_appid.txt"),
|
|
|
|
path.join(appPath, "steam_appid.txt")
|
|
|
|
);
|
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
fs.writeFileSync(path.join(appPath, ".itch.toml"), tomlFile);
|
2020-07-06 13:08:17 +00:00
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
if (platform === "linux") {
|
|
|
|
fs.writeFileSync(
|
|
|
|
path.join(appPath, "play.sh"),
|
|
|
|
'#!/usr/bin/env bash\n./shapezio --no-sandbox "$@"\n'
|
|
|
|
);
|
|
|
|
fs.chmodSync(path.join(appPath, "play.sh"), 0o775);
|
|
|
|
}
|
|
|
|
});
|
2020-07-06 13:08:17 +00:00
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
cb();
|
|
|
|
},
|
|
|
|
err => {
|
|
|
|
console.error("Packaging error:", err);
|
|
|
|
cb();
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2020-07-06 13:08:17 +00:00
|
|
|
|
2021-03-14 08:52:15 +00:00
|
|
|
gulp.task(taskPrefix + "standalone.package.prod.win64", cb => packageStandalone("win32", "x64", cb));
|
2021-03-09 09:07:19 +00:00
|
|
|
gulp.task(taskPrefix + "standalone.package.prod.linux64", cb =>
|
|
|
|
packageStandalone("linux", "x64", cb)
|
2020-05-09 14:45:23 +00:00
|
|
|
);
|
|
|
|
|
2021-03-09 09:07:19 +00:00
|
|
|
gulp.task(
|
|
|
|
taskPrefix + "standalone.package.prod",
|
|
|
|
gulp.series(
|
|
|
|
taskPrefix + "standalone.prepare",
|
|
|
|
gulp.parallel(
|
|
|
|
taskPrefix + "standalone.package.prod.win64",
|
|
|
|
taskPrefix + "standalone.package.prod.linux64"
|
|
|
|
)
|
2020-06-13 15:59:25 +00:00
|
|
|
)
|
2021-03-09 09:07:19 +00:00
|
|
|
);
|
|
|
|
}
|
2020-05-09 14:45:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = { gulptasksStandalone };
|