Light | Dark |
---|---|
To use start with:
GOTK_PROJECT="project_name" # set to init in new child directory instead of current
git clone --branch=master --depth=1 https://github.com/psydvl/gotk4-template ${GOTK_PROJECT:-.}
cd ${GOTK_PROJECT:-.}
git remote rm origin
Simple minimal gtk4 + golang template with .ui
file from Cambalache
To use start with:
GOTK_PROJECT="project_name" # set to init in new child directory instead of current
git clone --branch=ui --depth=1 https://github.com/psydvl/gotk4-template ${GOTK_PROJECT:-.}
cd ${GOTK_PROJECT:-.}
git remote rm origin
git branch -m ui master
git checkout docs
# ./ update.sh master ui
./update.sh
or
BRANCH=master
BRANCH=${BRANCH:-ui} # set to ui if empty, just copy without first line to use
CHANGELOG="changelog-$BRANCH"
git checkout $CHANGELOG
git branch -D $BRANCH
git switch --orphan $BRANCH
git commit --allow-empty -m "Init with gotk4 minimal template psydvl/gotk4-template"
git merge --squash --allow-unrelated-histories $CHANGELOG
git commit --amend --no-edit
git push -u origin $BRANCH --force-with-lease || echo "Not pushed" # for possible network issues