gridcoin-community / Gridcoin-Research

Gridcoin-Research
MIT License
586 stars 172 forks source link

Addition of Gridcoin to PortableApps.com! #1981

Open Peppernrino opened 3 years ago

Peppernrino commented 3 years ago

Hey everybody!

After 4 years or so of waiting... I have finally finished packaging the Gridcoin wallet for PortableApps.com!

https://portableapps.com/node/63173

Please check it out, and let me know if there is anything wonky or whatever, and it may be added to the list of official portable apps. :)

jamescowens commented 3 years ago

So this creates effectively a portable install and data bubble all on the portable media? I am not that familiar with this one, but it looks interesting!

Peppernrino commented 3 years ago

basically. yeah. it moves the %APPDATA%/GridcoinResearch (C://Users/username/AppData/Roaming/GridcoinResearch) directory back and forth when the wallet is open or closed. and it should keep the wallet.dat file safe during an update. :D

it also cleans up the boost_interprocess folder leftover in ProgramData in between runs. it's a bit stealthy.

Peppernrino commented 3 years ago

it would also be cool if i could be added back to the list of contributors... i've done work on the wallet, the website, contributed to the podcast, helped run the IRC and Discord channels... basically countless contributions. all taken away because of the actions of a small group of terrible people that have since left the community as predicted. one of the people even moved to have our wiki moved to another place so my years of contributions would be hidden. lol.

edit: it seems not all of the cronies have left the building. i've already received one down-vote for my hard work. lmao

jamescowens commented 3 years ago

@Peppernrino seems like a nice portability compatibility layer. I will tag @cyrossignol to take a look too...

nathanielcwm commented 3 years ago

@Peppernrino why not make it set the data directory to the GridcoinConfig folder in the Data folder?

Peppernrino commented 3 years ago

@nathanielcwm GridcoinResearch creates the directory in %APPDATA% then upon closing GridcoinResearch, moves the created data into the directory named GridcoinConfig. The GridcoinConfig directory actually doesn't exist in the Data directory until the wallet program is run. :)

Peppernrino commented 3 years ago

I was, however, going to modify the package so that it keeps the blockchain intact in between wallet updates... People might like that! lol

Maybe even add a snapshot in the DefaultData directory. This is where you would put stuff to populate a first run of the program, for the record. DefaultData is like AppData/Local/, and the Data directory is like a floating AppData/Roaming/ directory that you can throw back and forth.

nathanielcwm commented 3 years ago

Oh I meant why not just make it use GridcoinConfig instead of %appdata% @Peppernrino

My bad I'm so used to pinging Jim that I accidentally pinged him instead lol.

Peppernrino commented 3 years ago

honestly, that would be up to you guys... im not sure how i would get the Gridcoin wallet to look in a different place, but if someone wants to code an option for wallet location for me, that would be great...

it is, in essence, using the GridcoinConfig folder, but it needs to move it back to the %APPDATA%\GridcoinResearch folder for the wallet to recognize its existence. otherwise, as i understand it, it would just begin creating a new wallet.

jamescowens commented 3 years ago

I am not following this discussion too well. The options to look in a different place already exist as command line parameters for the wallet. -datadir= forces the wallet to look in that directory for the config file, wallet, and blockchain files.

Peppernrino commented 3 years ago

i haven't tried to feed it any cmdline yet. the wallet works the way it is. the question seems to be requesting 6, when i've already given a half dozen.