Skip to content

Commit

Permalink
fix: move require statement to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
kyungeunni committed Mar 30, 2022
1 parent c4de212 commit 63c4ae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/beforePack.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
const { spawn } = require("child_process");
const { Arch } = require("electron-builder");
const { downloadForPlatform } = require("./download-browsers");

exports.default = function beforePack(ctx) {
Expand All @@ -30,8 +31,6 @@ exports.default = function beforePack(ctx) {
return Promise.all([downloadForPlatform(platform), fixSharp(arch, platform)]);
};

const { Arch } = require("electron-builder");

function fixSharp(arch, platform) {
return new Promise((resolve, reject) => {
const npmInstall = spawn("npm", ["run", "fix-sharp"], {
Expand Down

0 comments on commit 63c4ae9

Please sign in to comment.