Skip to content

Commit

Permalink
Fix strings/sitesnum tools
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 5, 2024
1 parent af03f5b commit e1dc4fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
// @name:zh-CN Image Max URL
// @name:zh-TW Image Max URL
// @name:zh-HK Image Max URL
// @description Finds larger or original versions of images and videos for 9100+ websites, including a powerful media popup and download feature
// @description:en Finds larger or original versions of images and videos for 9100+ websites, including a powerful media popup and download feature
// @description Finds larger or original versions of images and videos for 9200+ websites, including a powerful media popup and download feature
// @description:en Finds larger or original versions of images and videos for 9200+ websites, including a powerful media popup and download feature
// @description:ar البحث عن نسخ أكبر أو أصلية من الصور لأكثر من 9200 موقع ويب
// @description:cs Vyhledá větší nebo původní verze obrázků a videí pro více než 9200 webů
// @description:da Finder større eller originale versioner af billeder og videoer til mere end 9200 websteder
Expand Down
3 changes: 1 addition & 2 deletions tools/package_extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,10 @@ if [ ! -z $RELEASE ]; then
echo "Release checklist:"
echo
echo ' * Ensure translation strings are updated'
echo ' * node tools/update_sitesnum.js'
echo ' * node tools/update_strings.js'
echo ' * node tools/gen_po.js'
echo ' * node tools/update_from_po.js'
echo ' * node tools/update_sitesnum.js'
echo ' * node tools/update_from_po.js'
echo ' * Ensure CHANGELOG.txt is updated'
echo ' * Sites added: ./tools/get_old_userscript.sh && node site/about.js olduserscript'
echo ' * Update xx00+ count (oujs, reddit post, firefox, website)'
Expand Down
4 changes: 2 additions & 2 deletions tools/update_sitesnum.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ process.chdir(__dirname + "/..");
var userscript_smaller = util.read_userscript("userscript_smaller.user.js");
about.get_userscript_stats(userscript_smaller);

var userscript = util.read_userscript();
var userscript = util.read_userscript(util.ts_userscript_filename);

var sites = about.get_sites();
var total_sites = sites.length;
Expand Down Expand Up @@ -66,7 +66,7 @@ for (var i = 0; i < lines.length; i++) {
}

if (changed) {
util.write_userscript_lines(lines);
util.write_userscript_lines(lines, util.ts_userscript_filename);

var pofiles = fs.readdirSync("po");
for (const pofile of pofiles) {
Expand Down
2 changes: 1 addition & 1 deletion tools/update_strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var maximage = require("../userscript.user.js");
var get_descriptions = function(strings) {
var descriptions = {};

var userscript = util.read_userscript();
var userscript = util.read_userscript(util.ts_userscript_filename);
var match_regex = /\/\/ @description:([-a-zA-Z]+) +(.*)/;
var matches = userscript.match(new RegExp(match_regex, "g"));
for (const match_str of matches) {
Expand Down

0 comments on commit e1dc4fc

Please sign in to comment.