eddiesigner / liebling

Beautiful and clean Ghost theme that is easy and comfortable to use. To get the latest version please head over the releases page 👉🏼
https://github.com/eddiesigner/liebling/releases
MIT License
1.27k stars 602 forks source link

Remove all build assets from git and fix windows build issues #315

Closed d3473r closed 3 years ago

d3473r commented 3 years ago

Hi,

i removed and untracked all {js|css|font} files that are build with our CI pipeline anyway. Also there were some build issues on windows if no python version 2 is installed. (I am now using the build aos tarball instead of building it again with our pipeline) There is also an open PR in run-script-os which fixes another build error. So for now I switched to the forked repo, we can switch back to the original if the PR gets merged.

Regards, D3473R

eddiesigner commented 3 years ago

Hey, thanks for this! However I'm afraid that I can't merge it, I got a message some time ago from the Ghost team where they asked me if I could add the build assets to the repo because they got multiple issue reports of people trying to download this repository directly as a zip folder instead of downloading it from the releases page, that's why I put back those files.

Also, I wonder why to use tarball? 🤔

I can see the PR in run-script-os is kinda recent so I would prefer to wait until they merge it 😅

d3473r commented 3 years ago

Hi, okay I guess its easy for non technical people to think they simply can download the zip and use as is 🤔

May I propose another solution:

I tested it with the develop branch of my fork https://github.com/D3473R/liebling/tree/develop Here is the submodule repo https://github.com/D3473R/liebling-src This should work just fine, some adaption is needed though in the src repo (mostly outdated links to the parent folder) Take a look and tell me what you think 😃

Regarding the second question: I am getting a build error on windows because i only have python3 installed. I guess the root cause are outdated dependencies in https://github.com/eddiesigner/aos notably node-gyp: npm ERR! npm ERR! gyp ERR! stack Error: Command failed: C:\Python39\python3.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];. The tarball solution works around this issue as no build of aos is necessary. The tarball already contains the build sources, this also speeds of our build time.

To the last point, yeah we can wait until it gets merged, i can switch locally to the fork until it is fixed.

eddiesigner commented 3 years ago

Hi 👋 I think that's a very good idea, I like it. Probably I will need to mention somewhere that if someone wants to contribute by changing something in the source files, they should do it in the other repository and probably I will need to modify some entries in the Wiki as well.

Btw, something would change in the theme development process?

I saw that the PR in the run-script-o repository is already merged, I would like to integrate those changes with this PR so I kindly ask you if you can remove all the changes in the assets files and just leave the ones related to the dependencies :)

d3473r commented 3 years ago

Hi again, i'm finally having more free time right now. The docs for the theme development process then have to move to the new repo. Can you create the new repo https://github.com/eddiesigner/liebling-src? Then I will open a PR there with the current src directory's git tree. Regards

eddiesigner commented 3 years ago

Hi 👋🏻

Sorry for the late response 😅, I already created the new repo: https://github.com/eddiesigner/liebling-src

You can now open a PR whenever you prefer, thank you again!

Cheers.

d3473r commented 3 years ago

Perfect :+1: . I think you have to create a file in the repo then i am able to fork it. You can create the license file or the the readme :)

eddiesigner commented 3 years ago

Done! I didn't know that I had to create a file first 😅

d3473r commented 3 years ago

I didn't know i either :D

eddiesigner commented 3 years ago

So I already added the src submodule in the develop branch but I'm a bit lost regarding the CI pipeline, how or where it should be configured? 😅 It has something to do with Github actions?