Skip to content

Commit

Permalink
feat: add episode id to show
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Oct 16, 2022
1 parent d3a608d commit 565bb89
Show file tree
Hide file tree
Showing 5 changed files with 3,351 additions and 102 deletions.
19 changes: 19 additions & 0 deletions build/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const replace = require("replace-in-file");
const ENTRY = "src/plugin/podlove-web-player.php";
const version = require("../package.json").version;

async function main() {
await replace({
files: ENTRY,
from: /(Version: \d\.\d\.\d?[-]?[\d])/,
to: `Version: ${version}`,
});

await replace({
files: ENTRY,
from: /(define\( \'PODLOVE_WEB_PLAYER_VERSION\'\, \'\d\.\d\.\d?[-]?[\d]\' \))/,
to: `define( 'PODLOVE_WEB_PLAYER_VERSION', '${version}' )`,
});
}

main();
Loading

0 comments on commit 565bb89

Please sign in to comment.