Skip to content

Commit

Permalink
Simplify release files, delete consts.js from release folder if it ex…
Browse files Browse the repository at this point in the history
…ists
  • Loading branch information
Eggbertx committed Nov 23, 2024
1 parent d41127a commit b6e7427
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@
"html/favicon2.png",
"html/favicon.png",
"html/firstrun.html",
"html/js/gochan.js",
"html/js/gochan.js.LICENSE.txt",
"html/js/gochan.js.map",
"html/js/",
"examples/configs/",
"examples/plugins/",
"templates/",
"sql/initdb_master.sql",
"sql/initdb_mysql.sql",
"sql/initdb_postgres.sql",
"sql/initdb_sqlite3.sql",
Expand Down Expand Up @@ -415,6 +412,7 @@ def release(goos):
shutil.copytree(file, path.join(release_dir, file))
copy(gochan_exe, path.join(release_dir, gochan_exe))
copy(migration_exe, path.join(release_dir, migration_exe))
delete(path.join(release_dir, "html/js/consts.js"))
archive_type = "zip" if goos in ('windows', 'darwin') else "gztar"
shutil.make_archive(release_dir, archive_type, root_dir="releases", base_dir=release_name)

Expand Down

0 comments on commit b6e7427

Please sign in to comment.