Last active
January 25, 2018 20:22
-
-
Save mki1967/a8c0939160dafc15407fd528a5c385c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app-id": "io.github.mki1967.mki3dgame", | |
"runtime": "org.freedesktop.Platform", | |
"runtime-version": "1.6", | |
"sdk": "org.freedesktop.Sdk", | |
"sdk-extensions": [ | |
"org.freedesktop.Sdk.Extension.golang" | |
], | |
"command": "mki3dgame", | |
"finish-args": ["--share=ipc", "--socket=x11", "--socket=pulseaudio", "--share=network", "--device=dri", "--socket=wayland"], | |
"cleanup-commands": [ | |
"rm -rf /app/go # remove working space" | |
], | |
"modules": [ | |
{ | |
"name": "scripts", | |
"sources": [ | |
{ | |
"type": "script", | |
"commands": [ | |
". /usr/lib/sdk/golang/enable.sh; export GOPATH=/app/go" | |
], | |
"dest-filename": "my_enable.sh" | |
}, | |
{ | |
"type": "script", | |
"commands": [ | |
". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; go build" | |
], | |
"dest-filename": "build.sh" | |
} | |
], | |
"buildsystem": "simple", | |
"build-commands": [ | |
"mkdir -p /app/go/{src,pkg,bin} # make go workspace", | |
"install -d /app/bin/scripts", | |
"cp *.sh /app/bin/scripts/" | |
] | |
}, | |
{ | |
"name": "mki3dgame", | |
"buildsystem": "simple", | |
"build-commands": [ | |
"cp -rpv go/* /app/go/", | |
"/app/bin/scripts/build.sh github.com/mki1967/mki3dgame", | |
"mv /app/go/src/github.com/mki1967/mki3dgame/mki3dgame /app/go/src/github.com/mki1967/mki3dgame/usr/games/mki3dgame.bin", | |
"rm /app/go/src/github.com/mki1967/mki3dgame/usr/share/games/mki3dgame/assets # remove a symbolic link", | |
"mv /app/go/src/github.com/mki1967/mki3dgame/assets /app/go/src/github.com/mki1967/mki3dgame/usr/share/games/mki3dgame/", | |
"mv /app/go/src/github.com/mki1967/mki3dgame/usr/share /app/", | |
"mv /app/go/src/github.com/mki1967/mki3dgame/usr/bin/* /app/bin/", | |
"cd /app; ln -s bin games", | |
"rm /app/share/icons/hicolor/64x64/apps/io.github.mki1967.mki3dgame.png", | |
"rm /app/share/icons/hicolor/128x128/apps/io.github.mki1967.mki3dgame.png", | |
"cp /app/share/games/mki3dgame/assets/icons/mkisg_icon_64x64.png /app/share/icons/hicolor/64x64/apps/io.github.mki1967.mki3dgame.png", | |
"cp /app/share/games/mki3dgame/assets/icons/mkisg_icon_128x128.png /app/share/icons/hicolor/128x128/apps/io.github.mki1967.mki3dgame.png" | |
], | |
"sources": [ | |
{ | |
"type": "git", | |
"url": "https://github.com/mki1967/mki3dgame", | |
"tag": "v1.11.1", | |
"commit" : "66b9acb0dbfcbe0c18a75a6efc4b334cca65520a", | |
"dest": "go/src/github.com/mki1967/mki3dgame" | |
}, | |
{ | |
"type": "git", | |
"url": "https://github.com/go-gl/gl", | |
"commit" : "ac0d3d2af0fe995e2bb09fa6619b716b0c0fc0fa", | |
"dest": "go/src/github.com/go-gl/gl" | |
}, | |
{ | |
"type": "git", | |
"url": "https://github.com/go-gl/glfw", | |
"commit" : "513e4f2bf85c31fba0fc4907abd7895242ccbe50", | |
"dest": "go/src/github.com/go-gl/glfw" | |
}, | |
{ | |
"type": "git", | |
"url": "https://github.com/go-gl/mathgl", | |
"commit" : "062629838a6b477efe492188d39194935ac07cd6", | |
"dest": "go/src/github.com/go-gl/mathgl" | |
}, | |
{ | |
"type": "git", | |
"url": "https://github.com/mki1967/go-mki3d", | |
"commit" : "9c5ff9942777b0636f67e4bd06b10e352c098c20", | |
"dest": "go/src/github.com/mki1967/go-mki3d" | |
}, | |
{ | |
"type": "git", | |
"url": "https://github.com/golang/image", | |
"commit" : "12117c17ca67ffa1ce22e9409f3b0b0a93ac08c7", | |
"dest": "go/src/golang.org/x/image" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment