From 5975fb669a476f4dee5a11021bad515231abcac7 Mon Sep 17 00:00:00 2001 From: lucor Date: Wed, 8 Jan 2025 18:39:18 +0100 Subject: [PATCH] web: update destination folder This commit updates the destination folder to wasm. Fixes: - https://github.com/fyne-io/fyne-cross-images/issues/50 - https://github.com/fyne-io/fyne-cross-images/pull/55 --- internal/command/web.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/command/web.go b/internal/command/web.go index 44d8d9e4..85c7c3be 100644 --- a/internal/command/web.go +++ b/internal/command/web.go @@ -20,8 +20,10 @@ type web struct { defaultContext Context } -var _ platformBuilder = (*web)(nil) -var _ Command = (*web)(nil) +var ( + _ platformBuilder = (*web)(nil) + _ Command = (*web)(nil) +) func NewWebCommand() *web { return &web{} @@ -79,7 +81,7 @@ func (cmd *web) Build(image containerImage) (string, error) { } // move the dist package into the "tmp" folder - srcFile := volume.JoinPathContainer(cmd.defaultContext.WorkDirContainer(), "web") + srcFile := volume.JoinPathContainer(cmd.defaultContext.WorkDirContainer(), "wasm") dstFile := volume.JoinPathContainer(cmd.defaultContext.TmpDirContainer(), image.ID()) return "", image.Run(cmd.defaultContext.Volume, options{}, []string{"mv", srcFile, dstFile}) }