Skip to content

Commit c6605ff

Browse files
committed
release v1.0
1 parent 03521ed commit c6605ff

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
tags:
77
- 'v*'
88
env:
9-
RELEASE_TAG: "v0.1.0"
9+
RELEASE_TAG: "v1.0.0"
1010

1111
jobs:
1212
build:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## Preface
1111
The Confluence Spaces Tool is a powerful utility designed to automate the copying of spaces between different Confluence instances. It supports both Confluence Server and Cloud versions and can perform various tasks such as fetching, creating, and updating pages, managing attachments, and synchronizing content between Confluence spaces. This tool is particularly useful for teams aiming to streamline documentation processes or migrate content between instances.
1212

13-
Download for [Windows x64](https://github.com/atonomic/confluence-spaces-tool/releases/download/v0.1.0/spaces_tool_windows_x64.exe) or for [Debian like Linux x64](https://github.com/atonomic/confluence-spaces-tool/releases/download/v0.1.0/spaces_tool_linux_x64.exe)
13+
Download for [Windows x64](https://github.com/atonomic/confluence-spaces-tool/releases/download/v1.0.0/spaces_tool_windows_x64.exe) or for [Debian like Linux x64](https://github.com/atonomic/confluence-spaces-tool/releases/download/v1.0.0/spaces_tool_linux_x64.exe)
1414

1515
![{038940FB-4201-448F-BF6D-4C723A330FC7}](https://github.com/user-attachments/assets/b8dbd9c1-6973-4149-a2da-366fed193037)
1616

config/config_loader.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,17 @@ def update_config(self, updated_config: Dict[str, Any]) -> None:
133133

134134
self.config_data = self._merge_dicts(self.config_data, updated_config)
135135

136-
with open(self.config_file, 'w') as file:
136+
if getattr(sys, 'frozen', False):
137+
# If the application is run as a bundle, use the sys._MEIPASS path
138+
config_path = os.path.join(sys._MEIPASS, self.config_file, 'configuration.yaml')
139+
else:
140+
# Otherwise, use the regular file path
141+
config_path = self.config_file
142+
143+
with open(config_path, 'w') as file:
137144
try:
138145
yaml.dump(self.config_data, file, default_flow_style=False, sort_keys=False)
139-
logger.debug(f"Configuration successfully updated and written to {self.config_file}")
146+
logger.debug(f"Configuration successfully updated and written to {config_path}")
140147
except yaml.YAMLError as e:
141148
raise yaml.YAMLError(f"Error writing updated configuration to YAML file: {e}")
142149

0 commit comments

Comments
 (0)