Auto update scripts

What other productivity software are you working with...
Post Reply
Raf
Posts: 139
Joined: 31 Jul 2024 15:34

Auto update scripts

Post 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...

highend
Posts: 14590
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Auto update scripts

Post 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
One of my scripts helped you out? Please donate via Paypal

Raf
Posts: 139
Joined: 31 Jul 2024 15:34

Re: Auto update scripts

Post 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.

highend
Posts: 14590
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Auto update scripts

Post 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?
One of my scripts helped you out? Please donate via Paypal

Post Reply