Skip to content

Commit

Permalink
Create directories properly, zip correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDisk committed Dec 14, 2023
1 parent 73c998b commit e29e119
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ jobs:
- name: Zip files (preserving permissions)
shell: bash
run: zip -r build.zip packaging/*
run: |
pushd packaging
zip -r ../build.zip .
popd
- name: Store build
uses: actions/upload-artifact@v2
Expand Down
8 changes: 4 additions & 4 deletions src/hugesettings.pas
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ procedure InitializeTrackerSettings;
if XDGCacheDir = '' then
XDGCacheDir := ConcatPaths([GetUserDir, '.cache', 'hUGETracker']);

if not DirectoryExists(XDGConfigDir) then CreateDir(XDGConfigDir);
if not DirectoryExists(XDGCacheDir) then CreateDir(XDGCacheDir);
if not DirectoryExists(XDGConfigDir) then ForceDirectories(XDGConfigDir);
if not DirectoryExists(XDGCacheDir) then ForceDirectories(XDGCacheDir);

SetupDirectoryParameter('conf_dir', XDGConfigDir, ConfDir);
SetupDirectoryParameter('cache_dir', XDGCacheDir, CacheDir);
Expand All @@ -100,8 +100,8 @@ procedure InitializeTrackerSettings;
MacConfigDir := ConcatPaths([GetUserDir, '.config', 'hUGETracker']);
MacCacheDir := ConcatPaths([GetUserDir, '.cache', 'hUGETracker']);

if not DirectoryExists(MacConfigDir) then CreateDir(MacConfigDir);
if not DirectoryExists(MacCacheDir) then CreateDir(MacCacheDir);
if not DirectoryExists(MacConfigDir) then ForceDirectories(MacConfigDir);
if not DirectoryExists(MacCacheDir) then ForceDirectories(MacCacheDir);

SetupDirectoryParameter('conf_dir', MacConfigDir, ConfDir);
SetupDirectoryParameter('cache_dir', MacCacheDir, CacheDir);
Expand Down

0 comments on commit e29e119

Please sign in to comment.