Compare commits

...
3 Commits
3 changed files with 8 additions and 2 deletions

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
## Changelog
### Version [2.1.3](https://github.com/majd/ipatool/releases/tag/v2.1.3)
- Fixed a bug where temporary files were not removed after downloading the app package.
- Fixed a bug where the `--keychain-passphrase` flag was marked as invalid.
### Version [2.1.2](https://github.com/majd/ipatool/releases/tag/v2.1.2)
- `FileBackend` keyring is now used when other options are not available.
+1 -1
View File
@@ -39,7 +39,7 @@ func rootCmd() *cobra.Command {
}, enumflag.EnumCaseSensitive), "format", "", "sets output format for command; can be 'text', 'json'")
cmd.PersistentFlags().BoolVar(&verbose, "verbose", false, "enables verbose logs")
cmd.PersistentFlags().BoolVarP(&nonInteractive, "non-interactive", "", false, "run in non-interactive session")
cmd.Flags().StringVar(&keychainPassphrase, "keychain-passphrase", "", "passphrase for unlocking keychain")
cmd.PersistentFlags().StringVar(&keychainPassphrase, "keychain-passphrase", "", "passphrase for unlocking keychain")
cmd.AddCommand(authCmd())
cmd.AddCommand(downloadCmd())
+2 -1
View File
@@ -29,7 +29,6 @@ func (t *appstore) ReplicateSinf(input ReplicateSinfInput) error {
if err != nil {
return errors.New("failed to open zip reader")
}
defer zipReader.Close()
tmpPath := fmt.Sprintf("%s.tmp", input.PackagePath)
tmpFile, err := t.os.OpenFile(tmpPath, os.O_CREATE|os.O_WRONLY, 0644)
@@ -71,6 +70,8 @@ func (t *appstore) ReplicateSinf(input ReplicateSinfInput) error {
return fmt.Errorf("failed to replicate sinf: %w", err)
}
zipReader.Close()
err = t.os.Remove(input.PackagePath)
if err != nil {
return fmt.Errorf("failed to remove original file: %w", err)