File asar-deterministic.patch of Package code

--- src/build/lib/asar.js.old	2022-12-14 11:05:52.000000000 +0100
+++ src/build/lib/asar.js	2023-01-08 17:24:27.779253400 +0100
@@ -9,6 +9,7 @@
 const es = require("event-stream");
 const pickle = require('chromium-pickle-js');
 const Filesystem = require('asar/lib/filesystem');
+const Stringify = require('fast-json-stable-stringify');
 const VinylFile = require("vinyl");
 const minimatch = require("minimatch");
 function createAsar(folderPath, unpackGlobs, destFilename) {
@@ -84,7 +85,7 @@
         const finish = () => {
             {
                 const headerPickle = pickle.createEmpty();
-                headerPickle.writeString(JSON.stringify(filesystem.header));
+                headerPickle.writeString(Stringify(filesystem.header));
                 const headerBuf = headerPickle.toBuffer();
                 const sizePickle = pickle.createEmpty();
                 sizePickle.writeUInt32(headerBuf.length);
openSUSE Build Service is sponsored by