-
Notifications
You must be signed in to change notification settings - Fork 6
copiado el codigo de mc20printer y actualizado a la ultima versión de electron #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Pabloferrandezroca
wants to merge
1
commit into
FacturaScripts:main
Choose a base branch
from
Pabloferrandezroca:tarea4743
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| name: Build | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build (${{ matrix.os }}) | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| script: build:linux | ||
| artifact: linux | ||
| paths: | | ||
| dist/*.AppImage | ||
| dist/*.deb | ||
| dist/*.rpm | ||
| - os: windows-latest | ||
| script: build:win | ||
| artifact: windows | ||
| paths: | | ||
| dist/*.exe | ||
| - os: macos-latest | ||
| script: build:mac | ||
| artifact: macos | ||
| paths: | | ||
| dist/*.dmg | ||
| dist/*.zip | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
|
|
||
| - name: Build | ||
| run: npm run ${{ matrix.script }} | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: fsprinter-${{ matrix.artifact }} | ||
| path: ${{ matrix.paths }} | ||
| if-no-files-found: error | ||
|
|
||
| release: | ||
| name: Publish release | ||
| needs: build | ||
| if: github.event_name == 'release' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: Download all artifacts | ||
| uses: actions/download-artifact@v7 | ||
| with: | ||
| path: artifacts | ||
|
|
||
| - name: Create GitHub release | ||
| uses: softprops/action-gh-release@v3 | ||
| with: | ||
| files: artifacts/**/* | ||
| generate_release_notes: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| /nbproject/ | ||
| /node_modules/ | ||
| /vendor/ | ||
| /out/ | ||
| /dist/ | ||
| package-lock.json | ||
| pos.txt | ||
| out/ | ||
| ticket | ||
| *.lock | ||
| .DS_Store | ||
| .DS_Store | ||
| .idea | ||
| .codex | ||
| .claude |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,63 @@ | ||
| # fsprinter | ||
| Electron app to connect printers to FacturaScripts. | ||
| # FSPrinter | ||
| Electron app to connect printers to FacturaScripts a factura.city | ||
|
|
||
| ## Run from source | ||
| ``` | ||
| ## Installation | ||
|
|
||
| ```bash | ||
| npm install | ||
| ``` | ||
|
|
||
| ## Development | ||
|
|
||
| Run the application in development mode: | ||
|
|
||
| ```bash | ||
| npm start | ||
| ``` | ||
|
|
||
| ## Build executable | ||
| ## Build | ||
|
|
||
| The project uses **electron-builder** to create distributable packages. | ||
|
|
||
| ### Build for all platforms | ||
| ```bash | ||
| npm run build | ||
| ``` | ||
| npm run make | ||
|
|
||
| ### Build for specific platforms | ||
|
|
||
| **Linux** (deb, rpm, AppImage): | ||
| ```bash | ||
| npm run build:linux | ||
| ``` | ||
|
|
||
| **Windows** (installer NSIS and portable): | ||
| ```bash | ||
| npm run build:win | ||
| ``` | ||
|
|
||
| **macOS** (dmg and zip): | ||
| ```bash | ||
| npm run build:mac | ||
| ``` | ||
|
|
||
| The compiled files will be generated in the `dist/` directory. | ||
|
|
||
| ## macOS: "The application is damaged" | ||
|
|
||
| The macOS build is not signed with an Apple Developer ID, so Gatekeeper | ||
| blocks it after download with a misleading "damaged" message. Remove the | ||
| quarantine attribute to allow it to run: | ||
|
|
||
| ```bash | ||
| xattr -dr com.apple.quarantine "/Applications/FSPrinter.app" | ||
| ``` | ||
|
|
||
| ## Project Information | ||
|
|
||
| - **Version:** 1.4.1 | ||
| - **Author:** Carlos García Gómez | ||
| - **License:** LGPL-3.0 | ||
|
|
||
| ## Contact or feedback | ||
| https://facturascripts.com/remote-printer | ||
| https://facturascripts.com/plugins/tickets |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On
releaseevents this matrix build runs on the tag ref, and passingGH_TOKENenables electron-builder's implicit GitHub publishing (its v26 docs state that whenGH_TOKEN/GITHUB_TOKENis defined, GitHub is the default publisher and CI tag builds publish). That makes each OS build try to upload release assets before the dedicatedreleasejob, which can fail in repos where this build job's token is read-only or duplicate the assets thatsoftprops/action-gh-releaseuploads; remove the token/use--publish neverin the build step and publish only in the release job.Useful? React with 👍 / 👎.