corifeus-builder 2026.4.143 → 2026.4.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +3 -3
- package/src/git.js +13 -4
- package/src/utils/appimage/after-all-artifact-build.js +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
|
-
# 🏗️ Corifeus Builder v2026.4.
|
|
8
|
+
# 🏗️ Corifeus Builder v2026.4.145
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -152,7 +152,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
|
|
|
152
152
|
**🚨 Important Changes:** Any breaking changes are prominently noted in the readme to keep you informed.
|
|
153
153
|
|
|
154
154
|
|
|
155
|
-
[**CORIFEUS-BUILDER**](https://corifeus.com/corifeus-builder) Build v2026.4.
|
|
155
|
+
[**CORIFEUS-BUILDER**](https://corifeus.com/corifeus-builder) Build v2026.4.145
|
|
156
156
|
|
|
157
157
|
[](https://www.npmjs.com/package/corifeus-builder) [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [](https://www.patrikx3.com/en/front/contact) [](https://www.facebook.com/corifeus.software)
|
|
158
158
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corifeus-builder",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.145",
|
|
4
4
|
"corifeus": {
|
|
5
5
|
"icon": "fas fa-gavel",
|
|
6
6
|
"code": "Make",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"mkdirp": "^3.0.1",
|
|
51
51
|
"mocha": "^11.7.5",
|
|
52
52
|
"mz": "^2.7.0",
|
|
53
|
-
"npm": "^11.
|
|
54
|
-
"npm-check-updates": "^
|
|
53
|
+
"npm": "^11.13.0",
|
|
54
|
+
"npm-check-updates": "^22.0.1",
|
|
55
55
|
"should": "^13.2.3",
|
|
56
56
|
"time-grunt": "^2.0.0",
|
|
57
57
|
"yaml": "^2.8.3"
|
package/src/git.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
const exec = require('mz/child_process').exec;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
// Each promise resolves to null when not in a git repo, instead of rejecting
|
|
4
|
+
// noisily. Importing this module at top level previously dumped four
|
|
5
|
+
// "fatal: not a git repository" errors whenever cwd had no .git (e.g. webhook
|
|
6
|
+
// post-update tmp dirs where .git was just removed).
|
|
7
|
+
const safe = (cmd, mapStdout) => exec(cmd).then(
|
|
8
|
+
(stdout) => mapStdout(stdout),
|
|
9
|
+
() => null,
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
const commit = safe('git rev-list --all --count', (stdout) => parseInt(stdout.join('').toString()));
|
|
13
|
+
const date = safe('git log -1 --format=%at', (stdout) => parseInt(stdout.join('').toString()));
|
|
14
|
+
const branch = safe('git rev-parse --abbrev-ref HEAD', (stdout) => stdout.join('').toString().trim());
|
|
15
|
+
const repo = safe('git config remote.origin.url', (stdout) => {
|
|
7
16
|
const data = stdout.join('').toString().split('/');
|
|
8
17
|
let repo = data[data.length - 1].trim();
|
|
9
18
|
const remove = '.git';
|
|
@@ -118,10 +118,10 @@ module.exports = async function (context) {
|
|
|
118
118
|
const repo = await gh.getRepo('patrikx3', pkg.corifeus.reponame)
|
|
119
119
|
const result = await repo.createRelease({
|
|
120
120
|
"tag_name": 'v' + pkg.version,
|
|
121
|
-
"target_commitish": "
|
|
121
|
+
"target_commitish": "main",
|
|
122
122
|
"name": pkg.version,
|
|
123
123
|
"body": `
|
|
124
|
-
https://github.com/patrikx3/${pkg.corifeus.reponame}/blob/
|
|
124
|
+
https://github.com/patrikx3/${pkg.corifeus.reponame}/blob/main/change-log.md#v${pkg.version.replace(/\./g, '')}
|
|
125
125
|
|
|
126
126
|
[](https://snapcraft.io/${pkg.name}#cory-non-external)
|
|
127
127
|
`,
|