#Updating Active-Win
- Clone the repo: [https://github.com/rize-io/active-win]
cd
into the repo- Add the sindresorhus remote
git remote add sindresorhus https://github.com/sindresorhus/active-win.git
- If you run
git remote -v
you should be able to see both origin and sindresorhus remotes. - Checkout the
sindresorhus-main
branch. This branch is an exact copy of the original repo. - Run
git pull --rebase sindresorhus main
. This pulls in any recent changes from the original repo to make sure our fork stays in sync with it. Note, this is saying access thesindresorhus
user’s repo of active win and rebase themain
branch with Rize’ssindresorhus-main
branch. - There shouldn’t be any conflicts since it’s an exact copy.
cd
into themain
branch. Now we want to rebase our main branch with the copy.git rebase -i sindresorhus-main
- You’ll run into conflicts during this process, most likely just around version numbers, just accept the original version numbers and discard any
beta
version number changes. - Now
main
should be up to date with the latest changes from the original repo. - Add your changes
- Run
npm run build
after your changes are complete. cd
into the repo directory, runnpm link
. This sets up this local instance of @rize-io/active-win to be available for linking.cd
intosol/electron
then runnpm link @rize-io/active-win
to reference the local copy.- Verify your changes (go back to step 11 if necessary).
cd
back into active-win and commit your changes.- Change the version number in the package file by appending
-beta.0
to the version. Add a separate commit. - and force push
main
. If you are unsure you did it correctly, open a branch and create a PR so I can see. - Once
main
is updated, publish the npm packagenpm publish
- Update the version number in
sol/electron