Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(project): run bootstrap script fail in linux #944

Merged
merged 1 commit into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desktop/main-app/scripts/Download-agora-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const argv = {
};

const electronVersion =
require("../../../scripts/preinstall/agora-electron-options").electron_version;
require("../../../scripts/init-agora-configure/agora-electron-options").electron_version;
const agoraVersion = require(path.join(agoraElectronSdkPath, "package.json")).version;

fs.removeSync(path.join(agoraElectronSdkPath, "build"));
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"name": "flat-monorepo",
"private": true,
"scripts": {
"preinstall": "node ./scripts/preinstall",
"postinstall": "husky install",
"bootstrap": "yarn install --frozen-lockfile",
"bootstrap": "yarn run _init:agora-configure && yarn install --frozen-lockfile",
"lint": "yarn workspaces run lint",
"check-spelling": "cspell --no-progress \"**/*.{md,ts,tsx,js,css,less,json,yml,yaml,html,sh}\"",
"storybook": "yarn workspace flat-components start",
Expand All @@ -13,7 +12,8 @@
"ship": "yarn workspace renderer-app build && yarn workspace flat ship",
"ship:mac": "yarn workspace renderer-app build && yarn workspace flat ship:mac",
"ship:win": "yarn workspace renderer-app build && yarn workspace flat ship:win",
"ship:all": "yarn workspace renderer-app build && yarn workspace flat ship:win && yarn workspace flat pack:mac"
"ship:all": "yarn workspace renderer-app build && yarn workspace flat ship:win && yarn workspace flat pack:mac",
"_init:agora-configure": "node scripts/init-agora-configure"
},
"workspaces": {
"packages": [
Expand Down
File renamed without changes.