Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working flatpak. #731

Merged
merged 21 commits into from
Jul 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@ jsconfig.json

#lerna
lerna-debug.log

#flatpak
.flatpak-builder
build-dir
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock=false
package-lock=False
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ Here's a list of packages for various managers, most of which are maintained by
| AUR (Arch) | https://aur.archlinux.org/packages/nuclear-player-bin/ | [mikelpint](https://github.com/mikelpint) |
| Choco (Win) | https://chocolatey.org/packages/nuclear/ | [JourneyOver](https://github.com/JourneyOver) |
| Homebrew (Mac) | https://formulae.brew.sh/cask/nuclear | Homebrew |
| Snap | https://snapcraft.io/nuclear | [nukeop](https://github.com/nukeop) |

| Snap | https://snapcraft.io/nuclear | [nukeop](https://github.com/nukeop) |
|flatpak |(to be publised) | [advaithm](https://github.com/advaithm)
big thanks to [ayyeve](https://github.com/ayyEve) for letting me (advaithm) use her server as a compile machince.
## Community translations
Nuclear has already been translated to several languages, and we're always looking for contributors who would like to add more. Below is a list of currently available languages, along with contributors who helped to translate Nuclear to that language.

Expand Down Expand Up @@ -112,6 +113,21 @@ You will need docker and docker-compose. You need to allow the root user to conn
$ xhost SI:localuser:root
$ sudo docker-compose up dev
```
as of now you can build a flatpak version. you will need to install gobject-introspection, and flatpak-builder. after this you will need to install the runtimes and depedencies required by flatapk-builder for the compile process. when this was written you will need the 19.08 version of these flatpaks.
```shell
$ flatpak install flathub org.freedesktop.Platform
$ flatpak install flathub org.freedesktop.Sdk
$ flatpak install flathub io.atom.electron.BaseApp
```
next to build the project use the `--verbose` to get more out put
```shell
$ flatpak-builder build-dir org.flathub.nuclear.json
```
to run the built app
```shell
$ flatpak-builder --run build-dir org.flathub.nuclear.json run.sh
```
you can turn the app to a local repo. currently the file builds the latest release.

## Screenshots
This will be updated as the program evolves.
Expand Down
77 changes: 77 additions & 0 deletions flatpak/org.js.nuclear.Nuclear.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"app-id": "org.js,nuclear.Nuclear",
"runtime": "org.freedesktop.Platform",
"runtime-version": "19.08",
"branch": "19.08",
"sdk": "org.freedesktop.Sdk",
"base": "io.atom.electron.BaseApp",
"command": "run.sh",
"finish-args": [
"--share=network",
"--share=ipc",
"--socket=x11",
"--filesystem=host"
],
"build-options" : {
"build-args": [ "--share=network" ],
"cflags": "-O2 -g",
"cxxflags": "-O2 -g",
"env": {
"NPM_CONFIG_LOGLEVEL": "info"
}
},
"modules": [
{
"name": "nodejs",
"cleanup": [
"/include",
"/share",
"/app/lib/node_modules/npm/changelogs",
"/app/lib/node_modules/npm/doc",
"/app/lib/node_modules/npm/html",
"/app/lib/node_modules/npm/man",
"/app/lib/node_modules/npm/scripts"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/nodejs/node/archive/v14.5.0.zip",
"sha256": "b7e6ec14abc67879460d3693d95d6b0e8cc0beedbb6b946d61989575f7b544a7"
}
]
},
{
"name": "nuclear",
"build-options" : {
"env": {
"electron_config_cache": "/run/build/nuclear/npm-cache"
}
},
"buildsystem": "simple",
"sources": [
{
"type": "archive",
"url": "https://github.com/nukeop/nuclear/archive/v0.6.3.zip",
"sha256": "88101d4cacce0b9e9e7389656a8bd7a039e77fa16214a75c5c960f4052a3ed74",
"dest":"main"
},
{
"type": "script",
"dest-filename": "run.sh",
"commands": [ "/app/main/nuclear" ]
}

],
"build-commands": [
"npm install --prefix=main",
"npm install -g lerna",
"cd main && lerna bootstrap",
"cd ..",
"npm run build --prefix=main",
"mkdir -p /app/main /app/bin",
"cp -ra main/release/linux-unpacked/* /app/main/",
"install run.sh /app/bin/"
]
}
]
}