mirror of
https://github.com/majd/ipatool
synced 2026-11-28 02:07:52 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19e7261713 | ||
|
|
b031cd20d1 | ||
|
|
9db93c83c0 |
No files matched your search
@@ -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
@@ -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())
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user