mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
chore: move client folders (#948)
This commit is contained in:
18
apps/desktop/scripts/buildSubModules.mjs
Normal file
18
apps/desktop/scripts/buildSubModules.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
const repoDirectory = path.join(__dirname, '..');
|
||||
const publicDistributionDirectory = path.join(repoDirectory, 'public');
|
||||
|
||||
const octoBaseBranchName = 'master';
|
||||
/**
|
||||
* 1. Until OctoBase become public, we link it using submodule too.
|
||||
*/
|
||||
cd(`${path.join(repoDirectory, 'src-OctoBase')}`);
|
||||
await $`git checkout ${octoBaseBranchName}`;
|
||||
await $`git submodule update --recursive && git submodule update --remote`;
|
||||
await $`git pull origin ${octoBaseBranchName}`;
|
||||
await $`git reset --hard origin/${octoBaseBranchName}`;
|
||||
Reference in New Issue
Block a user