Page 1 of 1

Auto update scripts

Posted: 14 Jan 2025 08:23
by Raf
I have various scripts, for example, a script that changes the Vivaldi interface: https://github.com/JoyHak/customize-vivaldi-buttons

I have scripts in different languages, such as JavaScript or Autohotkey, so by script I mean any program code. By script transformation, I mean deleting/replacing some lines, comments on the algorithm. Some specific code blocks are updated with new ones, but not the entire script.

I have two versions of the scripts now: Personal and Public. The Personal version goes through a transformation, after which I upload it to GitHub via a browser. After that, I need to copy the Public version and send it to some forum or Reddit.

I would be very grateful for some assistance with automation/autohotkey script that can transform a Personal script into a Public script and at least uploaded a copy of it to GitHub. I am not familiar with Git commands...

Re: Auto update scripts

Posted: 15 Jan 2025 08:09
by highend
No info on where these changes come from to automate something...

If in doubt: regexreplace()

Uploading requires cloning your repo so that you can update it later on

Reuploading a file:

Code: Select all

git.exe add <the file you've edited>
git.exe commit -m <some commit message>
git.exe push origin main

Re: Auto update scripts

Posted: 15 Jan 2025 09:56
by Raf
highend wrote: 15 Jan 2025 08:09 No info on where these changes come from to automate something...
I just write a script for myself (Personal), and then publicly upload a separate file (Public) with parts of the original (Personal) script... this process needs to be automated... right now I'm just merging the various strings via jetbrains.

Re: Auto update scripts

Posted: 15 Jan 2025 10:17
by highend
right now I'm just merging the various strings via jetbrains.
use git diff & git apply to create / apply a patch file to not this in a scripted way?