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

fix: use workdir for temp bkp file #511

Merged
merged 5 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion .github/workflows/wails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
mv ./build/out/${{ env.PACKAGE_NAME }}.dmg ./build/bin/

- name: Notarize the DMG image
if: runner.os == 'macOS' && inputs.build-release
if: runner.os == 'macOS'
im-adithya marked this conversation as resolved.
Show resolved Hide resolved
run: |
echo "Notarizing Zip Files"
gon -log-level=info -log-json ./build/darwin/gon-notarize.json
Expand Down
2 changes: 1 addition & 1 deletion api/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (api *api) RestoreBackup(unlockPassword string, r io.Reader) error {
return fmt.Errorf("failed to create decrypted reader: %w", err)
}

tmpF, err := os.CreateTemp("", "nwc-*.bkp")
tmpF, err := os.CreateTemp(api.cfg.GetEnv().Workdir, "nwc-*.bkp")
im-adithya marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
return fmt.Errorf("failed to create temporary output file: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion main_wails.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var assets embed.FS
var appIcon []byte

func main() {
log.Info("NWC Starting in WAILS mode")
log.Info("Alby Hub starting in WAILS mode")
ctx, cancel := context.WithCancel(context.Background())
svc, _ := service.NewService(ctx)

Expand Down
Loading