Meta tags:
description= Read scientific documents in your language, in realtime, on any platform. 在任何平台上用您的语言实时翻译和阅读科学文献。 - PDFMathReader/scripts/release.mjs at main · PDFMathTranslate/PDFMathReader;
Headings (most frequently used words):
navigation, release, mjs, file, breadcrumbs, footer, menu, repository, filesexpand, tree, latest, commit, history, metadata, and, controls,
Text of the page (most frequently used words):
const (50), #release (45), run (27), tag (23), version (23), repo (22), log (22), name (21), path (21), error (20), sha (20), throw (19), github (18), and (17), json (15), the (15), item (15), join (15), step (14), commit (14), git (14), bun (13), for (12), bump (12), args (12), file (11), target (11), from (11), true (10), notes (10), package (10), console (10), published (9), commits (9), latest (9), assets (9), import (9), branch (9), work (8), repos (8), slice (8), parse (8), releases (8), mjs (8), root (8), assetdir (7), dry (7), scripts (7), failed (7), pdfmathreader (7), darwin (7), code (7), status (6), api (6), draft (6), every (6), existing (6), process (6), previous (6), history (6), dir (6), attempt (6), packaging (6), startswith (6), actions (6), build (6), ref (6), not (5), security (5), url (5), rmsync (5), recursive (5), only (5), find (5), dryrun (5), 100 (5), publish (5), filter (5), push (5), text (5), arg (5), you (4), force (4), encodeuricomponent (4), prerelease (4), uploaded (4), rerun (4), length (4), else (4), html_url (4), tag_name (4), packages (4), first (4), page (4), per_page (4), pages (4), all (4), download (4), assetname (4), features (4), arch (4), x64 (4), macos (4), sign (4), refs (4), reason (4), parseversion (4), origin (4), head (4), quiet (4), command (4), node (4), raw (4), your (4), support (4), copilot (4), this (3), navigation (3), view (3), after (3), asset (3), size (3), statsync (3), exit (3), writefilesync (3), zipfile (3), readfilesync (3), sleep (3), targets (3), linux (3), map (3), workflows (3), waiting (3), out (3), runs (3), readme (3), platform (3), existssync (3), with (3), win32 (3), some (3), shouldrelease (3), updated (3), defaultbranchref (3), signed (3), positional (3), execfilesync (3), 305 (3), 290 (3), copy (3), blame (3), main (3), more (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), can (2), community (2), footer (2), trim (2), false (2), edit (2), public (2), has (2), upload (2), retry (2), releasenotes (2), flatmap (2), flat (2), previousrelease (2), tar (2), stdio (2), sys (2), argv (2), endswith (2), zip (2), exe (2), same (2), checks (2), await (2), catch (2), renamesync (2), try (2), let (2), date (2), now (2), deadline (2), completed (2), conclusion (2), then (2), event (2), update (2), signature (2), verifymacreleasearchive (2), copyfilesync (2), electron (2), arm64 (2), mac (2), symbols (2), install (2), lockfile (2), mkdirsync (2), already (2), tags (2), higher (2), than (2), releasing (2), isancestor (2), changes (2), later (2), split (2), line (2), add (2), replace (2), current (2), utf8 (2), must (2), merge (2), files (2), namewithowner (2), return (2), new (2), done (2), cwd (2), options (2), 1024 (2), resolve (2), fileurltopath (2), lines (2), loc (2), breadcrumbs (2), insights (2), repository (2), pdfmathtranslate (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, that, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, 2026, inc, does, point, publishing, make, validated, been, incomplete, stays, unpublished, state, title, create, clobber, was, meanwhile, uploading, complete, are, since, reverse, compare, writing, six, passed, validation, tzf, ignore, assert, testzip, none, python3, invalid, executable, subarray, tostring, empty, 5000, retrying, large, artifact, downloads, occasionally, drop, scratch, break, downloaded, string, downloading, windows, 30000, started, timed, nfix, success, sort, head_branch, workflow_runs, head_sha, while, 1000, style, recent, publication, needs, green, gate, requires, verified, distribute, execpath, icons, appicon, icns, frozen, building, signing, locally, overlaps, which, usually, takes, longer, armv7l, ia32, points, different, matching, warning, continuing, rehearsal, pre, show, again, diff, boolean, found, format, bot, each, may, sit, just, below, lock, committing, could, fetch, rev, abbrev, check, stash, tracked, before, porcelain, untracked, built, rehearses, omit, usage, includes, base, ancestor, promise, settimeout, paginate, slurp, inherit, maxbuffer, encoding, meta, verify, child_process, rehearse, except, pushed, once, passes, local, carry, pinned, updater, trusts, builds, tests, but, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, open, panel, metadata, controls, top, expand, tree, items, pull, requests, issues, message, dismiss, alert, switched, accounts, appearance, settings, search, pricing, talks, workshops, what, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, improvements, across, one, place, developer, articles, sponsors, trending, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, projects, automated, hosting, review, collaboration, menu, skip, content,
Text of the page (random words):
pdfmathreader scripts release mjs at main pdfmathtranslate pdfmathreader github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message pdfmathtranslate pdfmathreader repository navigation code issues 1 1 pull requests actions security and quality insights more items files expand file tree main breadcrumbs pdfmathreader scripts release mjs copy path blame more file actions blame more file actions latest commit history history history 305 lines 290 loc 11 4 kb main breadcrumbs pdfmathreader scripts release mjs copy path top file metadata and controls code blame 305 lines 290 loc 11 4 kb raw copy raw file download raw file open symbols panel edit and raw actions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 publish a github release from this mac ci builds and tests every package but only a local build can carry the pinned macos signature the updater trusts bun run release version bump package json commit release version push then publish once ci passes bun run release publish the latest pushed release commit bun run release dry run rehearse every step except the github release import execfilesync from node child_process import copyfilesync existssync mkdirsync readfilesync renamesync rmsync statsync writefilesync from node fs import join resolve from node path import fileurltopath from node url import parseversion shouldrelease from github scripts release version mjs import previousrelease releasenotes from github scripts release notes mjs import verifymacreleasearchive from github scripts verify macos release mjs const root resolve fileurltopath new url import meta url const run command args options execfilesync command args cwd root encoding utf8 maxbuffer 64 1024 1024 options const step command args execfilesync command args cwd root stdio inherit const git args run git args trim const gh args run gh args const api path json parse gh api path const pages path json parse gh api paginate slurp path const sleep ms new promise done settimeout done ms const log text console log n text const isancestor commit ref try git merge base is ancestor commit ref return true catch return false const args process argv slice 2 const dryrun args includes dry run const positional args filter arg arg startswith if args some arg arg startswith arg dry run positional length 1 throw error usage bun run release version dry run const bump positional 0 replace v if bump dryrun throw error dry run rehearses an existing release commit omit the version if process platform darwin throw error releases must be built and signed on macos const namewithowner repo defaultbranchref json parse gh repo view json namewithowner defaultbranchref const branch defaultbranchref name const releases pages repos repo releases per_page 100 flat if git status porcelain untracked files no throw error commit or stash tracked changes before releasing if git rev parse abbrev ref head branch throw error check out branch first git fetch quiet origin branch if bump parseversion bump step git merge ff only quiet origin branch if shouldrelease bump releases throw error bump must be higher than every published release const file join root package json text readfilesync file utf8 current json parse text version const updated text replace version current version bump if json parse updated version bump throw error could not update package json version log committing release bump writefilesync file updated step bun install lockfile only step git add package json bun lock step git commit quiet m release bump step git push quiet origin branch the readme bot commits after each push so the release commit may sit just below head const sha git log 50 format h s split n find line line slice 41 startswith release slice 0 40 if sha throw error no release commit found run bun run release version const later git diff name only sha head split n filter boolean if later some path path readme md throw error head has changes after release commit sha slice 0 7 bump again bun run release version if isancestor sha origin branch throw error push release commit sha slice 0 7 to branch first const version json parse git show sha package json version parseversion version const tag v version const prerelease parseversion version pre length 0 log releasing tag from sha slice 0 7 dryrun dry run const published releases find release release tag_name tag release draft if shouldrelease version releases const reason published tag is already published published html_url version is not higher than every published release if dryrun if published throw error reason console log reason process exit 0 console log warning reason continuing the rehearsal const refs api repos repo git matching refs tags encodeuricomponent tag if refs some ref ref ref refs tags tag api repos repo commits encodeuricomponent tag sha sha throw error tag tag already points to a different commit const work join root release publish tag assetdir join work assets rmsync work recursive true force true mkdirsync assetdir recursive true const targets darwin arm64 darwin x64 win32 x64 win32 ia32 linux x64 linux armv7l const assetname target pdfmathreader target target startswith darwin zip target startswith win32 exe tar gz const assets targets map target join assetdir assetname target sign locally first this overlaps with ci which usually takes longer log building and signing macos packages step bun install frozen lockfile if existssync join root electron appicon icns existssync join root public symbols step bun run icons mac step bun run build for const arch of arm64 x64 step process execpath electron build package mjs platform darwin arch arch distribute const name assetname darwin arch copyfilesync join root release name join assetdir name verifymacreleasearchive join assetdir name version console log verified signature and version of name publication needs the same green checks the ci release gate requires log waiting for ci at sha slice 0 7 const workflows packaging code style update readme recent features const deadline date now 60 60 1000 let packaging while packaging const runs pages repos repo actions runs head_sha sha event push per_page 100 flatmap page page workflow_runs filter item item head_branch branch const latest workflows map name runs filter item item name name sort a b b id a id 0 const failed latest find item item status completed item conclusion success if failed throw error failed name failed conclusion failed html_url nfix it or rerun it gh run rerun failed id then run bun run release if latest every item item status completed packaging latest 0 else if date now deadline throw error timed out waiting for ci rerun bun run release console log waiting latest map item i workflows i item status not started join await sleep 30000 log downloading windows and linux packages from packaging html_url for const target of targets filter item item startswith darwin const name assetname target dir join work download target for let attempt 1 attempt rmsync dir recursive true force true try run gh run download string packaging id repo repo name pdfmathreader target dir dir renamesync join dir name join assetdir name console log downloaded name break catch error large artifact downloads occasionally drop retry from scratch if attempt 4 throw error console log download of name failed attempt attempt retrying await sleep 5000 attempt rmsync dir recursive true force true same package checks as github scripts publish release mjs for const path of assets if statsync path size throw error empty package path if path endswith exe if readfilesync path subarray 0 2 tostring mz throw error invalid executable path else if path endswith zip run python3 i c import sys zipfile z zipfile zipfile sys argv 1 assert z testzip is none path else run tar tzf path stdio ignore console log all six packages passed validation log writing release notes const previous previousrelease version releases const history pages previous repos repo compare encodeuricomponent previous tag_name sha per_page 100 repos repo commits sha sha per_page 100 const commits previous history flatmap page page commits history flat reverse const notes join work release notes md writefilesync notes releasenotes repo version sha previous commits assets console log commits length commits since previous tag_name the first commit if dryrun log dry run complete packages and notes are in work process exit 0 log uploading tag as a draft const existing releases find release release tag_name tag if existing existing draft console log tag was published meanwhile existing html_url process exit 0 if existing step gh release upload tag assets repo repo clobber else step gh release create tag assets repo repo target sha title tag notes file notes draft prerelease prerelease const uploaded json parse gh release view tag repo repo json assets assets for const path of assets const name path slice assetdir length 1 const asset uploaded find item item name name if asset state uploaded asset size statsync path size throw error upload of name is incomplete the draft stays unpublished rerun to retry only make the release public after every validated package has been uploaded log publishing tag step gh release edit tag repo repo notes file notes draft false prerelease latest if api repos repo commits encodeuricomponent tag sha sha throw error tag tag does not point to sha rmsync work recursive true force true log published gh release view tag repo repo json url jq url trim footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|