Skip to content

Commit

Permalink
Add source packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mammerla committed Feb 22, 2024
1 parent 7faf5c6 commit e4e5da5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion casual_creator/chill_dreams/complete/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,22 @@ function create_mcaddon() {
.pipe(gulp.dest("build/packages/"));
}

function create_source_pack() {
return gulp
.src([
"./**/*",
"./../../../LICENSE",
"./../README.md",
"./**/.vscode/*",
"!./build/**/*",
"!./node_modules/**/*",
"!./build/",
"!./node_modules/",
])
.pipe(zip(projectname + "_complete_source.zip"))
.pipe(gulp.dest("build/packages/"));
}

function deploy_localmc_resource_packs() {
return gulp
.src(["build/resource_packs/" + rpfoldername + "/**/*"])
Expand Down Expand Up @@ -334,7 +350,7 @@ exports.default = gulp.series(build, deploy_localmc);
exports.clean = gulp.series(clean_build, clean_localmc);
exports.watch = gulp.series(build, deploy_localmc, watch);
exports.serve = gulp.series(build, deploy_localmc, startServer, serve);
exports.package = gulp.series(build, gulp.parallel(create_bp_mcpack, create_rp_mcpack), create_mcaddon);
exports.package = gulp.series(build, gulp.parallel(create_bp_mcpack, create_rp_mcpack), create_mcaddon, create_source_pack);
exports.updateworld = gulp.series(
clean_localmc_world_backup,
backup_localmc_world,
Expand Down

0 comments on commit e4e5da5

Please sign in to comment.