Skip to content

Commit

Permalink
it would be infuriating if this worked
Browse files Browse the repository at this point in the history
  • Loading branch information
Osmose committed Sep 22, 2024
1 parent 4480e72 commit b4d51ec
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,25 +164,25 @@ jobs:
with:
name: ${{ matrix.artifact-name }}

- name: Copy Phantomake binary to tauri binaries dir (Unix)
- name: Copy Phantomake binary to tauri bin dir (Unix)
if: matrix.platform == 'ubuntu-latest'
run: |
mv phantomake ./packages/gui/src-tauri/binaries/phantomake-$(rustc -Vv | grep host | cut -f2 -d' ')
mv phantomake ./packages/gui/src-tauri/bin/phantomake-$(rustc -Vv | grep host | cut -f2 -d' ')
- name: Copy Phantomake binary to tauri binaries dir (MacOS)
- name: Copy Phantomake binary to tauri bin dir (MacOS)
if: matrix.platform == 'macos-latest'
run: |
mv phantomake ./packages/gui/src-tauri/binaries/phantomake-universal-apple-darwin
cd ./packages/gui/src-tauri/binaries
mv phantomake ./packages/gui/src-tauri/bin/phantomake-universal-apple-darwin
cd ./packages/gui/src-tauri/bin
ln -s phantomake-universal-apple-darwin phantomake-aarch64-apple-darwin
ln -s phantomake-universal-apple-darwin phantomake-x86_64-apple-darwin
pwd
ls -l .
- name: Copy Phantomake binary to tauri binaries dir (Windows)
- name: Copy Phantomake binary to tauri bin dir (Windows)
if: matrix.platform == 'windows-latest'
run: |
Move-Item -Path phantomake.exe -Destination .\packages\gui\src-tauri\binaries\phantomake-$(rustc -Vv | Select-String "host:" | ForEach-Object {$_.Line.split(" ")[1]}).exe
Move-Item -Path phantomake.exe -Destination .\packages\gui\src-tauri\bin\phantomake-$(rustc -Vv | Select-String "host:" | ForEach-Object {$_.Line.split(" ")[1]}).exe
- uses: tauri-apps/tauri-action@v0
env:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sidecar": true,
"open": true,
"scope": [
{"name": "binaries/phantomake", "sidecar": true, "args": true}
{"name": "bin/phantomake", "sidecar": true, "args": true}
]
}
},
Expand All @@ -37,7 +37,7 @@
"depends": []
},
"externalBin": [
"binaries/phantomake"
"bin/phantomake"
],
"icon": [
"icons/32x32.png",
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/components/DirectoryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function DirectoryForm() {
return;
}

const command = Command.sidecar('binaries/phantomake', ['build', projectDirectory!, outputDirectory]);
const command = Command.sidecar('bin/phantomake', ['build', projectDirectory!, outputDirectory]);
setBuilding(true);
setBuildResult(null);
const output = await command.execute();
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const useMainStore = create<MainStoreState>()(
const { projectDirectory, watchProcess } = get();
if (watchProcess || !projectDirectory) return;

const command = Command.sidecar('binaries/phantomake', ['watch', projectDirectory]);
const command = Command.sidecar('bin/phantomake', ['watch', projectDirectory]);
command.stdout.on('data', (line) =>
set((state) => {
return { watchLogs: [...state.watchLogs, { index: logIndex++, text: line }].slice(-1000) };
Expand Down
2 changes: 1 addition & 1 deletion packages/phantomake/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "phantomake",
"description": "A file-focused static site generator",
"version": "0.4.27",
"version": "0.4.28",
"license": "ISC",
"module": "src/index.ts",
"bin": "./src/cli.ts",
Expand Down

0 comments on commit b4d51ec

Please sign in to comment.