mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
rcc: support rebuilding with go generate
This commit is contained in:
parent
a3d527ca6b
commit
699f1389e2
@ -15,7 +15,7 @@ main() {
|
||||
local ARG_DEST_RCC="${2:-$(basename -s .qrc "$ARG_INPUT_QRC").rcc}"
|
||||
local ARG_DEST_GO="${3:-$(basename -s .rcc "$ARG_DEST_RCC").go}"
|
||||
local ARG_PACKAGENAME="${4:-main}"
|
||||
local ARG_VARIABLENAME="${4:-_resourceRcc}"
|
||||
local ARG_VARIABLENAME="${5:-_resourceRcc}"
|
||||
|
||||
if [[ ! -f ${ARG_INPUT_QRC} ]] ; then
|
||||
echo "Input file ${ARG_INPUT_QRC} not found" >&2
|
||||
@ -29,6 +29,8 @@ main() {
|
||||
cat > "${ARG_DEST_GO}" <<EOF
|
||||
package ${ARG_PACKAGENAME}
|
||||
|
||||
//go:generate miqt-rcc.sh $@
|
||||
|
||||
import (
|
||||
"embed"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user