fazer-lang 2.1.1 → 2.2.1
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/LICENSE +21 -0
- package/README.md +37 -175
- package/fazer.js +312 -85
- package/package.json +11 -9
- package/apply_icon.js +0 -28
- package/apply_icon_robust.js +0 -51
- package/bin/fazer.exe +0 -0
- package/package.json.bak +0 -44
- package/standalone.bundled.js +0 -12910
- package/standalone.js +0 -186
- package/test.fz +0 -92
package/apply_icon_robust.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const { rcedit } = require('rcedit');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
|
|
5
|
-
async function main() {
|
|
6
|
-
const exePath = path.resolve(__dirname, '../FzEncrypt.exe');
|
|
7
|
-
const tempExePath = path.resolve(__dirname, '../FzEncrypt-temp.exe');
|
|
8
|
-
const iconPath = path.resolve(__dirname, '../fazer.ico');
|
|
9
|
-
|
|
10
|
-
console.log(`Applying icon...`);
|
|
11
|
-
|
|
12
|
-
try {
|
|
13
|
-
// 1. Copy to temp to avoid lock issues
|
|
14
|
-
fs.copyFileSync(exePath, tempExePath);
|
|
15
|
-
|
|
16
|
-
// 2. Apply icon to temp
|
|
17
|
-
await rcedit(tempExePath, {
|
|
18
|
-
icon: iconPath,
|
|
19
|
-
'version-string': {
|
|
20
|
-
'CompanyName': 'Fazer Corp',
|
|
21
|
-
'FileDescription': 'Fz Encrypt',
|
|
22
|
-
'ProductName': 'Fz Encrypt',
|
|
23
|
-
'LegalCopyright': 'Copyright (c) 2026'
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
// 3. Replace original
|
|
28
|
-
// Retry a few times if locked
|
|
29
|
-
let retries = 5;
|
|
30
|
-
while (retries > 0) {
|
|
31
|
-
try {
|
|
32
|
-
fs.renameSync(tempExePath, exePath);
|
|
33
|
-
break;
|
|
34
|
-
} catch (e) {
|
|
35
|
-
retries--;
|
|
36
|
-
if (retries === 0) throw e;
|
|
37
|
-
console.log("Fichier verrouillé, nouvelle tentative dans 1s...");
|
|
38
|
-
await new Promise(r => setTimeout(r, 1000));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
console.log('Icon applied successfully!');
|
|
43
|
-
} catch (error) {
|
|
44
|
-
console.error('Error applying icon:', error);
|
|
45
|
-
// If temp exists, try to clean up
|
|
46
|
-
try { if (fs.existsSync(tempExePath)) fs.unlinkSync(tempExePath); } catch(e) {}
|
|
47
|
-
process.exit(1);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
main();
|
package/bin/fazer.exe
DELETED
|
Binary file
|
package/package.json.bak
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fazer-lang",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "Fazer Language – Un langage de programmation.",
|
|
5
|
-
"main": "fazer.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"fazer": "fazer.js"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"discord.js": "^14.14.1",
|
|
11
|
-
"chevrotain": "^11.0.3"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"pkg": "^5.8.1"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"start": "node fazer.js",
|
|
18
|
-
"build": "pkg fazer.js -t node18-win-x64 -o bin/fazer.exe"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"fazer",
|
|
22
|
-
"programming-language",
|
|
23
|
-
"street-script",
|
|
24
|
-
"discord-bot",
|
|
25
|
-
"simulation",
|
|
26
|
-
"risk-based"
|
|
27
|
-
],
|
|
28
|
-
"author": "hm (Fazer City)",
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"files": [
|
|
31
|
-
"fazer.js",
|
|
32
|
-
"bin/",
|
|
33
|
-
"README.md",
|
|
34
|
-
"logo.png"
|
|
35
|
-
],
|
|
36
|
-
"repository": {
|
|
37
|
-
"type": "git",
|
|
38
|
-
"url": "git+https://github.com/hmj34/fazer-lang.git"
|
|
39
|
-
},
|
|
40
|
-
"bugs": {
|
|
41
|
-
"url": "https://github.com/hmj34/fazer-lang/issues"
|
|
42
|
-
},
|
|
43
|
-
"homepage": "https://github.com/hmj34/fazer-lang#readme"
|
|
44
|
-
}
|