Josh @ Dreamland
|
|
Reply #30 Posted on: March 09, 2012, 10:33:39 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Let's have LGM download itself.
Wait...
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
IsmAvatar
|
|
Reply #33 Posted on: March 10, 2012, 02:37:57 am |
|
|
LateralGM Developer
Location: Pennsylvania/USA Joined: Apr 2008
Posts: 877
|
Hey Harri, we might be able to get more people on Windows to try and hack something together if we collaborate on what we've been able to get so far. If you would, update this wiki page http://enigma-dev.org/docs/Wiki/Install:Git:Windows with what you've done so far. I populated it with the furthest I was able to get.
|
|
|
Logged
|
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #36 Posted on: March 10, 2012, 08:21:42 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Why would he need to share the changed files? Just merge them in locally if you want to try them.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
ugriffin
|
|
Reply #37 Posted on: March 11, 2012, 09:42:42 am |
|
|
Location: London, United Kingdom Joined: Dec 2010
Posts: 23
|
I agree with some of the comments in this forum. While GM's LLVM 'compiler' may be light years away, the truth is that they've got their multiplatform C++ runner out now, while ENIGMA has nothing. By the time YoYo has LLVM, if you guys don't at least have something, ENIGMA will have nothing. The truth is that until we can make ENIGMA usable to make & distribute games, we can't expect more people to join the project, as there's no 'excitement factor' (and all the times I've even tried to use ENIGMA on my Mac something goes wrong anyways). Another truth is that ENIGMA has the power to simply destroy YoYo's business model, once all the C++ extensibility you're talking about is ready. You'd probably get a good amount of downloads from the Cocos2D community and similar open source engines, as well as prolly half of the GM community would migrate to ENIGMA. Professionals looking for a new development tool? They'd ideally choose something FOSS: right now that option is Cocos2D. As a programmer working professionally in game development, I use Cocos2D as my game engine, partly because GM:Studio isn't finished, and because I know Cocos2D-iPhone (and its sibling Cocos2D-X) is free and extremely powerful. ENIGMA could be the 'alternative' to Cocos: FOSS but easier to use. So I think we should have *something* out to increase interest in the project, and then move on to new features. Recreate GM61 and then move on from there. My 2 cents.
|
|
|
Logged
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #39 Posted on: March 11, 2012, 12:07:49 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
That's dumb, too. Why would we have LGM be responsible for it on Windows but not on Linux? You need elevated privileges either way, because people keep installing ENIGMA in the Program Files on Win 7 (at which point nothing works so they show up on the IRC). I don't know that LGM's actually going to be capable of updating anything. We'll probably have to maintain installers and patches for each platform, and have enigma.jar invoke the correct installation system on them (the installer on Windows, the package manager on Linux, Steve Jobs on Mac).
|
|
« Last Edit: March 11, 2012, 12:18:35 pm by Josh @ Dreamland »
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
IsmAvatar
|
|
Reply #42 Posted on: March 27, 2012, 07:16:21 pm |
|
|
LateralGM Developer
Location: Pennsylvania/USA Joined: Apr 2008
Posts: 877
|
I just wanted to share that the checksums have now been combined into one file: http://dl.dropbox.com/u/9975312/enigma-dep/update.md5Apparently you can just chain the binaries onto the end of md5sum and it outputs a newline for each, and then -c will check all lines. It still has the nuisance of outputting the relative path, but I worked around that by just CD'ing first. Here's the new release.sh #!/bin/sh DB=~/Dropbox/Public/enigma-dep WORK=~/enigma-dev
if [ "$#" -gt "0" ]; then echo $1 | grep l > /dev/null 2>&1 if [ $? = 0 ]; then cp ws-git/LateralGM/lgm16b4.jar $WORK/lgm16b4.jar cp ws-git/LateralGM/lgm16b4.jar $DB/lgm16b4.jar echo lgm16b4.jar fi echo $1 | grep e > /dev/null 2>&1 if [ $? = 0 ]; then cp enigma-dev/pluginsource/enigma.jar $WORK/plugins/enigma.jar cp enigma-dev/pluginsource/enigma.jar $DB/enigma.jar echo enigma.jar fi fi
cd $WORK md5sum lgm16b4.jar plugins/enigma.jar plugins/shared/jna.jar > $DB/update.md5
I worked around the problem of including the directories to the binaries by copying them to my working copy and then md5summing the binaries in there. Anyways, at this point, all that's really left is the updater code. Just toying with the code, it would probably look something like this: #!/bin/sh url=http://dl.dropbox.com/u/9975312/enigma-dep curl -silent $url/update.md5 | md5sum -c --quiet 2> /dev/null # Next, trim the ": FAILED" from each line # For each line: #curl -O $url/$line (might need to do some splicing to not include the relative paths in the url)
Edit: After some discussion on the IRC between TGMG (mac), bobtheblueberry (oddly), and myself (ubuntu), we've found some tools that we have in common that we might use to develop an update script. - md5 - Mac only.
- md5sum - Ubuntu only.
- openssl md5 - Both.
- grep - Both.
- wget - Linux only.
- curl - Both.
Here's an example of openssl md5: $ openssl md5 lgm16b4.jar plugins/enigma.jar MD5(lgm16b4.jar)= febec82e1498ebfab21751764e2e16d3 MD5(plugins/enigma.jar)= b5f6de84285a0795ad74f03c32bccafd
|
|
« Last Edit: March 31, 2012, 04:55:01 pm by IsmAvatar »
|
Logged
|
|
|
|
|