Skip to content

Commit

Permalink
Tweaks for automated build process
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Apr 1, 2024
1 parent 00d3720 commit 58dac3b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
APP_NAME=LaraJobs
APP_NAME="LaraJobs Desktop"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

NATIVEPHP_APP_NAME="LaraJobs"
NATIVEPHP_APP_NAME="LaraJobs Desktop"
NATIVEPHP_APP_VERSION="1.0.0"
NATIVEPHP_APP_ID="com.larajobs.desktop"
NATIVEPHP_DEEPLINK_SCHEME="larajobs"
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,16 @@ jobs:
- name: Install Node dependencies
run: npm install

- name: Prepare Laravel Application
run: |
cp .env.example .env
- name: Run install
run: php artisan native:install --force --no-interaction

- name: Inject App Icon
run: cp public/images/icon.png vendor/nativephp/electron/resources/js/build/icon.png

- name: Run build
run: php artisan native:publish --no-interaction
env:
Expand All @@ -41,15 +48,6 @@ jobs:
NATIVEPHP_APPLE_ID: ${{ secrets.NATIVEPHP_APPLE_ID }}
NATIVEPHP_APPLE_ID_PASS: ${{ secrets.NATIVEPHP_APPLE_ID_PASS }}
NATIVEPHP_APPLE_TEAM_ID: ${{ secrets.NATIVEPHP_APPLE_TEAM_ID }}
GITHUB_REPO: larajobs-desktop
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NATIVEPHP_UPDATER_ENABLED: true

- uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist/*.dmg
dist/*.zip
dist/*.yml
1 change: 0 additions & 1 deletion app/Jobs/FetchNewJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use App\Events\JobsPosted;
use App\Services\RSSDataService;
use Carbon\Carbon;
use Config;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
Expand Down
4 changes: 2 additions & 2 deletions config/nativephp.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
'providers' => [
'github' => [
'driver' => 'github',
'repo' => env('GITHUB_REPO'),
'owner' => env('GITHUB_OWNER'),
'repo' => str_contains(env('GITHUB_REPOSITORY', ''), '/') ? explode('/', env('GITHUB_REPOSITORY'))[1] : env('GITHUB_REPO'),
'owner' => str_contains(env('GITHUB_REPOSITORY', ''), '/') ? explode('/', env('GITHUB_REPOSITORY'))[0] : env('GITHUB_OWNER'),
'vPrefixedTagName' => true,
'token' => env('GITHUB_TOKEN'),
'private' => false,
Expand Down
Binary file added public/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 58dac3b

Please sign in to comment.