News for hackers. Stuff that matters.
Re:Show HN: I've open sourced DD Poker by SloopJon on Thursday August 15, 2024 @11:46AM (#41257380)
This was a bit of a bear to get running on my Mac. Everything depends on ddpoker.rc, which doesn't behave as expected unless an OSNAME environment variable is defined. I don't have that on macOS 14 (Sonoma) Mac using either zsh or bash. I hopped onto a 10.13 (High Sierra) hackintosh, and it doesn't have that variable either.

For the person who was having trouble getting this to work on an M1 Mac (flagged, really?), try this (after installing Java 8 and Maven using Homebrew):

    % git clone https://github.com/dougdonohoe/ddpoker.git
    ...
    % cd ddpoker
    % export OSNAME=darwin
    % source ddpoker.rc
    JAVA_HOME changed, version now openjdk version "1.8.0_422"
    % mvn-package-no-tests
    ...
    % poker
I built this before figuring out the OSNAME thing, so I can't actually vouch for the build step working out of the box.

Anyway, thank you very much, Doug. This looks really cool.

Re:Show HN: I've open sourced DD Poker by dougdonohoe on Thursday August 15, 2024 @11:56AM (#41257473)
I'll have to fix the OSNAME thing, my apologies. That's an env var I have in my local ".zshrc" I had overlooked. I'll fix it later today.
Re:Show HN: I've open sourced DD Poker by dougdonohoe on Thursday August 15, 2024 @12:05PM (#41257557)
This is fixed. Proper variable is `OSTYPE`, which I've fixed. `OSNAME` is a personal historical artifact.
Re:Show HN: I've open sourced DD Poker by galenmarchetti on Thursday August 15, 2024 @12:37PM (#41257872)
fast fix! appreciate this
Re:Show HN: I've open sourced DD Poker by dougdonohoe on Thursday August 15, 2024 @06:13PM (#41261016)
I added a `TL;DR` section to the base readme with jus this info.